CONTENT="no-cache"

T

Todd Anderson

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.
 
G

Grant Wagner

Todd said:
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 <[email protected]>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_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-developer/upgrade_2.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,076
Messages
2,570,565
Members
47,201
Latest member
IvyTeeter

Latest Threads

Top