anyway to get past browser cache and find out the truth of what is going on?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lkrubner@geocities.com

    anyway to get past browser cache and find out the truth of what is going on?

    I've got a site on a hosted virtual server. I'd like to know the truth
    of what is going on, but I can't get past my browsers cache. There is
    some kind of error in my code that occurs on a given line. When I
    comment out that one line, everything else seems to work. When I
    uncomment that one line, the browser simply shows what was last on
    screen the last time the code was working. That is, if I write

    echo "hello";

    while the line is commented out, then I change the line to

    echo "goodbye";

    and I uncomment the line and hit the refresh button on my browser, the
    word hello will remain on screen. Neither FireFox nor IE will show me
    the truth of what they are seeing, either that be nothing or an error
    message.

    How to get around that?

  • DJ Craig

    #2
    Re: anyway to get past browser cache and find out the truth of what is going on?

    Your question is confusing, so I'm not sure if this is what you're
    looking for, but to stop the browser from caching the page at all, add
    this meta tag:
    <meta http-equiv="Pragma" content="no-cache" />

    Comment

    • Daniel Tryba

      #3
      Re: anyway to get past browser cache and find out the truth of what is going on?

      lkrubner@geocit ies.com wrote:
      [caching][color=blue]
      > How to get around that?[/color]

      If you have the time: read RFC 2616. It will tell you all about
      controlling caching mechanisms :)

      Comment

      • Gordon Burditt

        #4
        Re: anyway to get past browser cache and find out the truth of what is going on?

        >echo "goodbye";[color=blue]
        >
        >and I uncomment the line and hit the refresh button on my browser, the
        >word hello will remain on screen. Neither FireFox nor IE will show me
        >the truth of what they are seeing, either that be nothing or an error
        >message.
        >
        >How to get around that?[/color]

        Telnet to port 80 and manually type a HTTP request?

        Gordon L. Burditt

        Comment

        • Daniel Tryba

          #5
          Re: anyway to get past browser cache and find out the truth of what is going on?

          DJ Craig <spit@djtriciti es.com> wrote:[color=blue]
          > this meta tag:
          > <meta http-equiv="Pragma" content="no-cache" />[/color]

          This is a serverside group, we have access to the real stuff using
          header().

          Comment

          • Andy Hassall

            #6
            Re: anyway to get past browser cache and find out the truth of what is going on?

            On 21 Jul 2005 10:32:30 -0700, lkrubner@geocit ies.com wrote:
            [color=blue]
            >I can't get past my browsers cache.[/color]

            Use a browser without a cache.

            In about:config in Firefox there are several cache options ending in "enable"
            that would likely disable cacheing entirely if you turned them all off.

            Or use one of the many command-line HTTP clients that either don't have cache
            support or can have it disabled; wget, curl, Perl LWP etc.

            --
            Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
            <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

            Comment

            • usenet@isotopeREEMOOVEmedia.com

              #7
              Re: anyway to get past browser cache and find out the truth of what is going on?

              On Thu, 21 Jul 2005 19:35:18 +0100, Andy Hassall <andy@andyh.co. uk> wrote:
              [color=blue]
              >On 21 Jul 2005 10:32:30 -0700, lkrubner@geocit ies.com wrote:
              >[color=green]
              >>I can't get past my browsers cache.[/color][/color]

              Add to the top of your file :

              <?php
              header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
              header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
              header( "Cache-Control: no-store, no-cache, must-revalidate" );
              header( "Cache-Control: post-check=0, pre-check=0", false );
              header( "Pragma: no-cache" );
              ?>

              Comment

              Working...