CONTENT="no-cache"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Todd Anderson

    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.
  • David Dorward

    #2
    Re: CONTENT=&quot;n o-cache&quot;

    Todd Anderson wrote:
    [color=blue]
    > I'm ussing this <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> to keep
    > me html page from caching. But it's not working.[/color]

    Are you running it on a webserver that parses HTML files for HTTP-EQUIV
    <meta> tags? I don't know of any.
    [color=blue]
    > Is there a javascript that will do this?[/color]

    No.

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

    --
    David Dorward http://david.us-lot.org/

    Comment

    • Grant Wagner

      #3
      Re: CONTENT=&quot;n o-cache&quot;

      Todd Anderson wrote:
      [color=blue]
      > 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.[/color]

      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 <gwagner@agrico reunited.com>

      * Client-side Javascript and Netscape 4 DOM Reference available at:
      *


      * Internet Explorer DOM Reference available at:
      *
      Gain technical skills through documentation and training, earn certifications and connect with the community


      * 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


      Comment

      Working...