Does anyone know how to tell web browsers to NOT cache a page? Pages
containing for example Server-side includes should in most cases not be
cached. I thought I managed to solve this problem before by including
the following tag:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
This worked fine until I tested with Internet Explorer 5, who seems to
ignore it. So the question - what can I do from the server-side to stop
browsers such as IE5 from caching dynamically generated pages which
aren't supposed to be cached?
Here is simple demonstration of the problem:
http://server.milliweb.com/temp/date.shtml
That page simply displays the server's date. Press the "refresh" button
a few times in your browser. If you have Netscape 4.5 or Internet
Explorer 4, you will notice that the date is updated, which it should
since it is based on an SSI - but in Internet Explorer 5, the page is
cached locally and not reloaded from the server, so the date is not
updated!
What is the solution?
/Henrik
--
Henrik Kniberg milliWeb, Stockholm
WWW: http://www.milliweb.com
email: henrik@kniberg.com
tel: +46 8 560 24788
mobile: +46 70 492 5284