Ajax Cache Busting with Javascript

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.

 
Visit Site:
Ajax Cache Busting with Javascript
Filed in:
JavaScript / Tutorials & Tips / Randomizing
Platforms:
LinuxMicrosoft WindowsUnixApple Mac OS XSun Solaris 
Databases:
No Database 
Date Added:
Sep 22, 2005 
Last Updated:
Feb 11, 2009 

License and Pricing Information

Freeware

Price: $0.00 USD

Freeware

Price: $0.00 USD

Publisher site visits: 4,743
Average rating: 4.24
Total ratings: 19

Add/Edit Your Review

Reviews and Ratings

Thinking out of the box...
Rating: 5 - Excellent (Oct 15th, 2006)

Share this Listing