jCay.org

last scripts

popular scripts

top rated

search
 
search:

Advertisment

Ajax Cache Busting with Javascript

DeEnFrSp
Hits: 1524

Ajax Cache Busting with Javascript

Rating 0.0 0.0
Browsers are notorious at hanging on tenaciously to cached pages. This problem is evident in Ajax applications when sending XMLHTTPRequest GET requests to Internet Explorer. Even when you use all manner of fancy headers like "Pragma: no-cache" or "Cache-Control: must-revalidate" you'll often find that you receive a cached page rather than a 'live' one. Here's something else you can try, which has worked well for me, and essentially only needs one line of Javascript.


Platform(s): Windows
Date: Apr, 30 2006
Author: The Mouse Whisperer, http://mousewhisperer.co.uk/js_page.html

Ratings

Number of Ratings: 100 Votes
5     
68%
4
32%
3
0%
2
0%
1
0%
Visitor Voting Booth: Rate It!