A Cache-Control response directive in the HTTP header
Questions tagged [no-cache]
93 questions
4
votes
1 answer
How to set Cache Control to no-cache in Tomcat 7?
I am trying to set the Cache Control for Tomcat 7 to the no-cache option.
I have tried to use the ExpiresFilter in my web.xml as follows:
ExpiresFilter
…

jgr208
- 2,896
- 9
- 36
- 64
4
votes
4 answers
Howto deactivate caching inside a jsp page
I understand there is a HTTP response header directive to disable page caching:
Cache-Control:no-cache
I can modify the header by "hand":
<%response.addHeader("Cache-Control","no-cache");%>
But is there a "nice" way to make the JSP interpreter…

Eduard Wirch
- 9,785
- 9
- 61
- 73
3
votes
1 answer
apache no-cache, expire
I am trying to force no-cache on csv file on my site.
I added those lines to httpd.conf, by the documentation from apache:
ExpiresActive On
ExpiresDefault A0
ExpiresDefault A0
Header set Cache-Control "no-cache,…

Gabi
- 53
- 1
- 6
3
votes
2 answers
How to prevent some background-images caching
adding some random number it works, but only for img
Is there any way to prevent caching prp. background-image?
"

user5660692
3
votes
0 answers
Browsers seem to be ignoring my cache control Python response headers
I'm currently developing an app on google-app-engine using webapp2 Python. I'm developing on a Mac, Lion, and testing in Firefox 26, Safari 6.02 and Google Chrome.
I have a home page with login button. You click login I AJAX the form to the server,…

Chez
- 961
- 1
- 9
- 20
2
votes
1 answer
How to force clear user's browser all the time?
We're working on a website. Our client want to check the website daily, but they're facing a problem. Whenever we make a change on the website, they have to clear their browser cache.
So I added the following header to my server…

Moon
- 22,195
- 68
- 188
- 269
2
votes
1 answer
PHP - Is it better to set session cache limiter to nocache or use jQuery ajax cache:false?
Is it better to set session cache limiter to nocache or use jQuery ajax cache:false?
I'm using PHP with jQuery. I want to default session.cache_limiter to nocache for all my php pages that use sessions. That way I don't have to set…

Txoov
- 174
- 1
- 2
- 10
2
votes
0 answers
Apply cache-control to a specific files in directory
I want the all files from a directory have cache,
I have this in my .htaccess but not working correctly
Header set cache-control "public, max-age=31536000, immutable"
What is the correct solution?

NARTONIC
- 452
- 10
- 22
2
votes
1 answer
HTML5-compliant cache-control no-cache inside the document?
This is probably a duplicate question but none of the solutions I've found by searching the internet will validate at w3c.
I don't have granular control at the document-level on the hosting-company's server, so I need to include the no-cache…

Tim
- 5,371
- 3
- 32
- 41
2
votes
1 answer
How to disable cache for asynchronous HTTPWebRequest for Windows Phone application?
I am developing a mobile app using Rest API. I'm using Asynchronous calls as GetResponse method is not supported in Windows Phone 8 development.
When I launch the application, it fetches the correct data using GET method. I have implemented a 60…

Raghav Gaur
- 23
- 5
2
votes
2 answers
how to verify "Cache-Control", "no-cache, no-store, must-revalidate"
I am learning about cache and how to manage it.
I can see that static content like images, css files, js files gets stored in temporary folder when I open my website pages. But now when I added these attributes in response header, I cannot see any…

Onki
- 1,879
- 6
- 38
- 58
2
votes
2 answers
Isn´t no-cache, no-store enough to prevent browsers and proxies to cache?
I like to prevent any caching what and where so ever and has a response header with control-cache: private, proxy-revalidate, no-cache, no-store
But it seem to much, isn´t no-cache, no-store enough to prevent browsers and proxies to cache?

uran
- 23
- 2
2
votes
1 answer
What's best way to present no-cache?
Possible Duplicate:
Using tags to turn off caching in all browsers?
I am just curious as one html tag it's efficient for no-cache.
or

Andrew Allen West
- 734
- 2
- 7
- 14
1
vote
1 answer
GWT *nocache* and deploying app in Jetty 7
In this gwt web says to place a *.htaccess config file like this to avoid caching main javascript gwt application.
ExpiresActive on
ExpiresDefault "now"
Header merge Cache-Control "public, max-age=0,…

ramon_salla
- 1,587
- 1
- 17
- 35
1
vote
3 answers
Hosting a GWT Webapp in IIS
I am currently trying to configure an ASP.net Web Application through Web.config, to host a GWT WebApp in a specific folder. I've managed to configure the mimeMap for the .manifest file extension in the system.Webserver/staticContent section…

madoke
- 873
- 11
- 25