Re: AJAX cache problem with $resource in IE8

2,354 views
Skip to first unread message

ProLoser

unread,
Sep 24, 2012, 5:11:34 PM9/24/12
to ang...@googlegroups.com
Open a bug ticket instead of a groups discussion if you want this to be addressed by the core team.

On Monday, July 16, 2012 1:23:12 PM UTC-7, David Brunner wrote:
Internet Explorer 8 caches AJAX requests.  When this caching operates, a GET request will not even it the server; IE simply generates its own 304.  This bizarre design choice causes serious problems.  More details here: http://stackoverflow.com/questions/1013637/unexpected-caching-of-ajax-results-in-ie8

When using jQuery AJAX calls, the problem can be solved with the following configuration command:

$.ajaxSetup({ cache: false });

This does not seem to work when using $resource, presumably because $resource does not use the jQuery AJAX functionality.  It seems that $resource needs a no-cache mode which, under IE8, would append a timestamp query parameter to prevent unwanted caching.

A fix or elegant workaround would be appreciated!  We would love to tell our customers to drop IE8, but it turns out that the judicial system forces them to use IE8, so we're kind of stuck.

Thanks!

David

moduleQ

David Brunner

unread,
Sep 25, 2012, 2:58:53 PM9/25/12
to ang...@googlegroups.com
Will do!

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en.
 
 

Reply all
Reply to author
Forward
0 new messages