Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

AJAX cache problem with $resource in IE8  #1418

@dbrunner

Description

@dbrunner

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions