dimanche 10 mai 2015

How to disable caching of page?

In my web application I have a problem with the browser back button, so I used this code to disable caching,I cleared all the cache from the browser but it didn't work.

// Set standard HTTP/1.1 no-cache headers.
response.setHeader("Cache-Control", "private, no-store, no-cache, must-revalidate");

// Set standard HTTP/1.0 no-cache header.
response.setHeader("Pragma", "no-cache");

//Proxies
response.setDateHeader("Expires", 0);

Aucun commentaire:

Enregistrer un commentaire