I've got a problem with AJAX & Internet Explorer 9: it stops polling our server after receiving response to initial etagged GET.

It pretends to issue requests with response like "Response HTTP/1.1 304 Not Modified, Status 200 OK" (yes, two different status codes in one response) and same ETag (which should change with time) but none of them actually appears in server logs.

This problem appears only in IE, same code works just fine in Chrome & FF.

Perhaps passing {cache: false} to jQuery.ajax() could help, but I'd like to know if there is a way to solve the problem on a server side.

There may be a mistake in our ETag usage.

Thank you!

有帮助吗?

解决方案

I suppose this article will be usefull for you: http://www.dashbay.com/2011/05/internet-explorer-caches-ajax/

The problem is in AJAX caching. You should forbid it anyway for necessary request.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top