File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Santosh Kumar Nayak
Joined: Aug 02, 2011
Jun 03, 2013 05:38:39
How to disable caching for a website ?
Suppose there is a website abc.com and I do not want the browser to cache the data for it.
Joined: Apr 19, 2013
Jun 03, 2013 06:02:59
If you choose to disable caching in client side then you have to configure the caching policies of your browser.
If you choose to disable caching in server side then set related cache headers in the server responses
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1. response.setHeader("Pragma", "no-cache"); // HTTP 1.0. response.setDateHeader("Expires", 0); // Proxies.
I agree. Here's the link:
subject: Disable caching
Problem with favicon.ico
JSPs calling an old version of swf file, that isn't in the webapps folder
WA #1.....word association
Warning: Page has Expired
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015