I want to set cache expiration for my html page after may be 10days
<META HTTP-EQUIV="expires" CONTENT="Thu, 12 Apr 2012 08:21:57 GMT">
So my question is
- What happens after 10days? yes the cache will get expire but do I have to set the expiration date again ?
- I there a way to set the day length in number for eg: 10
- Am confused here please give me some reference.
Please help…
The tag has limited effect. In particular, it does not affect proxies, since they work on HTTP headers and do not parse HTML documents.
After the expiry time, browsers are expected to treat the copy of the page in their caches as stale and not use it but request for the page from the server (if online), at least conditionally (send if modified since such-and-such). This means that after any new request for the page, the copy received should not be cached at all. So yes, you should set a new expiry date, unless you really want to prevent caching.
The
Expiresheader or itsmetasimulation needs to have a specific time mentioned. There are other ways to affect caches, see http://www.mnot.net/cache_docs/