Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1168 How can I set the cache expiration date on an HTML file to, say, midnight of the day the page is first served?

You are here: irt.org | FAQ | JavaScript | Misc | Q1168 [ previous next ]

Not possible. The expiration is set in the _http_ header and not the _HTML_ header. The browser is passed the expiration date and time - and it is upto the browser to do what it likes with this information. It cannot be done on the client side - as the browser (by now) has decided what it's going to do with the document.

©2018 Martin Webb