My ajax request has cache set to false but Chrome still occasionally cache’s it so when I hit the back button I get the cached data. I have tried adding a date/time/math random parameter to the end of the URL still without any luck. Is there any other way to make this never cache?
Thanks
are you sure it is chrome that is doing the caching and not the webserver. from the looks of it you are doing the right thing to avoid caching. I would suggest setting the
cache-controlproperty in the header. depending on your server side scripting language find the right way to do the same.JSP:
response.setHeader("Cache-Control", "no-cache");PHP: