Linked Questions
42 questions linked to/from What's the difference between Cache-Control: max-age=0 and no-cache?
1 vote
0 answers
197 views
Understand Request HTTP Cache-Control [duplicate]
I know the mechanism of Cache-Control: no-cache in server response HTTP header, but I want to know in what circumstance that a browser will send a request with Cache-Control: no-cache to server? I ...
1928 votes
30 answers
1.3m views
How do we control web page caching, across all browsers?
Our investigations have shown us that not all browsers respect the HTTP cache directives in a uniform manner. For security reasons we do not want certain pages in our application to be cached, ever, ...
242 votes
6 answers
204k views
Difference between no-cache and must-revalidate for Cache-Control?
From the RFC 2616 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1 no-cache If the no-cache directive does not specify a field-name, then a cache MUST NOT use the response to ...
101 votes
14 answers
86k views
AWS cloudfront not updating on update of files in S3
I created a distribution in cloudfront using my files on S3. It worked fine and all my files were available. But today I updated my files on S3 and tried to access them via Cloudfront, but it still ...
174 votes
4 answers
153k views
What is Cache-Control: private?
When I visit chesseng.herokuapp.com I get a response header that looks like Cache-Control:private Connection:keep-alive Content-Encoding:gzip Content-Type:text/css Date:Tue, 16 Oct 2012 06:37:53 GMT ...
95 votes
4 answers
58k views
What is the difference between no-cache and no-store in Cache-control?
I don't find get the practical difference between Cache-Control:no-store and Cache-Control:no-cache. As far as I know, no-store means that no cache device is allowed to cache that response. In the ...
43 votes
2 answers
51k views
Make IE cache the resources but always revalidate
The cache control header "no-cache, must-revalidate, private" allows browsers to cache the resource but forces a revalidate with conditional requests. This works as expected in FF, Safari, and Chrome. ...
38 votes
1 answer
49k views
OutputCache setting inside my asp.net mvc web application. Multiple syntax to prevent caching
I am working on an asp.net MVC web application and I need to know if there are any differences when defining the OutputCache for my action methods as follow:- [OutputCache(Duration = 0, Location = ...
22 votes
3 answers
42k views
"Cache-Control: max-age=0, no-cache" but browser bypasses server query (and hits cache)?
I'm using Chrome 40 (so something nice and modern). Cache-Control: max-age=0, no-cache is set on all pages - so I expect the browser to only use something from its cache if it has first checked with ...
18 votes
6 answers
12k views
Cant cache resource when having both gzip and Etag
I am trying to cache a (javascript) resource in the browser and have properly set all of Cache-control:max-age, Expires, and Etag in the response headers (as is seen from the screenshot). The browser ...
11 votes
2 answers
13k views
express view cache acting funny
I'm running into some funny stuff with the view cache in express/Jade. The controller fetches an article from MongoDB via Mongoose and hands it to the res.render function. However, after running for a ...
10 votes
2 answers
7k views
Browser keeps rendering its cached version. I want to always force a GET
How do I prevent the client browser from rendering its cached version for a page, so that it must always perform a GET when the visitor visits the page? I am using Django's @never_cache decorator in ...
8 votes
2 answers
2k views
Can a user agent set a max-age greater than zero in its request?
I have a doubt about max-age behaviour after reading the Http Cache rfc. Scenario: User agent GET /foo Origin Server Response header cache-control: max-age=120 Server tells user agent that the ...
5 votes
2 answers
4k views
Why does Firefox ignore cache headers and revalidate on refresh?
I have some image resources that are immutable and can be cached forever. Chrome seems to respect my response headers, and does not re-validate the resources: Here's an example of one of these ...
5 votes
2 answers
4k views
caching image but update on change
I'm storing and caching images with link like this http://example.com/1.jpg http://example.com/2.jpg Users have ability to modify and overwrite 1.jpg or 2.jpg. So what I want to cache all images but ...