By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,379 Members | 1,705 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,379 IT Pros & Developers. It's quick & easy.

CONTENT="no-cache"

P: n/a
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.
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
Are you running it on a webserver that parses HTML files for HTTP-EQUIV
<meta> tags? I don't know of any.
Is there a javascript that will do this?


No.

Try: http://rootprompt.org/article.php3?article=3864

--
David Dorward http://david.us-lot.org/
Jul 20 '05 #2

P: n/a
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
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.