Page 1 of 1

Cache-control headers.

PostPosted: January 13th, 2011, 3:47 am
by james
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:
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!

Re: Cache-control headers.

PostPosted: January 16th, 2011, 10:51 am
by james
Thanks for your help Jason. Our website is flying now!