my dog learned polymorphism*
The moose likes General Computing and the fly likes Disable caching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Disable caching" Watch "Disable caching" New topic
Author

Disable caching

Santosh Kumar Nayak
Ranch Hand

Joined: Aug 02, 2011
Posts: 92
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.

Thanks
Santosh
Carles Gasques
Ranch Hand

Joined: Apr 19, 2013
Posts: 199
    
    1
Hi,

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



Cheers,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Disable caching
 
Similar Threads
Problem with favicon.ico
WA #1.....word association
JSPs calling an old version of swf file, that isn't in the webapps folder
cache
Warning: Page has Expired