Cache-control headers.
Posted: January 13th, 2011, 3:47 am
Ok I'm one of those "if all you care about is blazing fast speed, and you don't update your site that often, you can safely set this to True".
So I enabled "Client-Side cache".
Here's are my current response header:
Question: I would like browsers to cache pages for 1 hour and not to check for new versions until 3600 seconds. What is the best way to accomplish this?
Should I just add...
to the server headers or is there a better way?
Also I'm curious without any cache-control added by me how long are browsers caching pages?
Thanks!
So I enabled "Client-Side cache".
Here's are my current response header:
- Code: Select all
HTTP Status Code: HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
ETag: ""
Server: Microsoft-IIS/7.5
Date: Thu, 13 Jan 2011 08:41:21 GMT
Content-Length: 29272
Question: I would like browsers to cache pages for 1 hour and not to check for new versions until 3600 seconds. What is the best way to accomplish this?
Should I just add...
- Code: Select all
Cache-control: Max-Age=3600
to the server headers or is there a better way?
Also I'm curious without any cache-control added by me how long are browsers caching pages?
Thanks!