Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Misc | Q1168 [ previous next ]

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

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.


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.