IE XHR vs Chrome XHR

168 views
Skip to first unread message

Tim

unread,
Mar 4, 2012, 1:31:59 AM3/4/12
to AngularJS
I have a very simple single page that display some rows from a table.
8 fields. The first pass works fine in all browsers.

When I query the data again it works just fine in Chrome and Firefox
but IE doesn't request new data from the server. A F5 refresh won't
update it either. I have to close IE and clear Temp files to get it
to show the updated page. I've tried IE7 and IE 9 (with and without
compat mode). I traced it line by line and the XHR returns the same
data as the initial page display. I wiresharked the server and there
is no request from the IE browsers to get the latest data. If I go to
IE cache settings and change to "Always get new page" instead of
Automatically it works ok. The problem is that won't work in the real
world because the default for IE is automatically.

Originally I had

this.tapes = $resource('api/tapelog.cfc');

Then after much searching for IE related cache issues I found
verifyCache.

I have tried verifyCache like

this.tapes = $resource('api/tapelog.cfc', {}, {
'query' : {method : 'GET', isArray : true, verifyCache : true}
});

I'm guessing it's something painfully simple but after 3 hours I
couldn't find any documentation on it. Is it a XHR header change?

Thanks,
Tim



Vojta Jína

unread,
Mar 4, 2012, 8:47:31 PM3/4/12
to ang...@googlegroups.com
Which version of Angular are you using ? We got rid off whole $resource caching.
Are you saying that browser (IE), does not send the request, but takes the data from its cache instead ?
I would check the headers you are sending from server.

V.

Tim

unread,
Mar 5, 2012, 2:56:26 AM3/5/12
to AngularJS
Version 0.10.6

And that's correct IE pulls the response from the cache.  If I check
to Tool-Options-Settings-Temp Files-Check for new page-Every Time I
visit a page it works ok.

Checking the headers was EXACTLY correct.

I added a header to the original response of "Expires=-1"  And now IE
works.
Reply all
Reply to author
Forward
0 new messages