How do I prevent AJAX from loading cached page in Google Chrome?

pureblueagave

New member
I have a web page that is supposed to load data from another page using Ajax. When the second page is changed, the first page updates automatically, on the fly, without having to refresh the page. This works great in Internet Explorer. However, since you can't be sure what browser visitors to the page are using, I like to test everything in more than one browser. The new data isn't being loaded when viewed in Google Chrome. I have the following ASP code in the page to prevent it from being cached...

Response.Buffer = True
Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"

Even though that code is there, it's still doesn't refresh the data when it is changed. Is there another way to prevent a page from being cached that works in Google Chrome, or is there something else I should be looking into other than the cache?
Thanks Colanth, that was brilliant. Works perfectly now.
 
Back
Top