A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Introducing JavaFX 8 Programming
this week in the
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
how to disable browser caching with jsp
A good way to send out a bulk of emails ?
Redirect or DNS alias?
How to set context root of an application in JBoss?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015