Todd Anderson wrote:
I'm ussing this <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> to keep
me html page from caching. But it's not working. Is there a javascript
that will do this?
Thanks in advance for your help.
No, there's not really anything you can do client-side to guarantee the
item doesn't get cached.**
See <url:
http://www.mnot.net/cache_docs/ /> for information on
server-side cache directives.
** - note that there are techniques to ensure the browser loads a fresh
copy of your page under certain circumstances, for example:
document.write('<a href="somepage.html?t=' +
(new Date()).getTime() +
'">A Link</a>');
somepage.html should now never be retrieved from the local browser cache
since it's always a unique URL.
--
| Grant Wagner <gw*****@agricoreunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
*
http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 6/7 and Mozilla
*
http://www.mozilla.org/docs/web-deve...upgrade_2.html