471,573 Members | 1,049 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,573 software developers and data experts.

CONTENT="no-cache"

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
2 19882
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
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.

Similar topics

5 posts views Thread by Richie | last post: by
38 posts views Thread by Haines Brown | last post: by
1 post views Thread by Bruce W...1 | last post: by
9 posts views Thread by EdWhyatt | last post: by
1 post views Thread by dave8421 | last post: by
3 posts views Thread by Alexander Smirnov | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.