Announcement

Collapse
No announcement yet.

Stop Cache

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stop Cache

    Didnt know if this should be in DBS support, But it could be used for many things, so i posted here..

    On a script ive made, an user verification script, the image allways stays the same, in FF it doesnt and image destroy function does the trick..... and the cache isnt stored.

    But in IE, the image is allways the same but it has different hidden values, so what the user types in will allways be wrong seeing as there seeing the wrong image.

    Ive tried obvious things like...

    Code:
    header("Cache-control: no-cache");
    header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");
    Doesnt work in IE still :-(

    Any idea what will stop cache all together on the page?

    Thanks.
    www.isomerizer.com

  • #2
    Re: Stop Cache

    Something like this should work:

    Code:
    Header( "Last-Modified: " . gmdate( "D, j M Y H:i:s" ) . " GMT" );
    Header( "Expires: " . gmdate( "D, j M Y H:i:s", time() ) . " GMT" );
    Header( "cache-Control: no-store, no-cache, must-revalidate" ); // HTTP/1.1
    Header( "cache-Control: post-check=0, pre-check=0", FALSE );
    Header( "Pragma: no-cache" ); // HTTP/1.0
    I didn't have a chance to test it however, but give it a try and let us know.

    Comment


    • #3
      Re: Stop Cache

      Nope, Still doesnt work in IE :|
      www.isomerizer.com

      Comment


      • #4
        Re: Stop Cache

        Which version of internet exploder are you testing with?

        Comment


        • #5
          Re: Stop Cache

          Maby try this

          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-cache, must-revalidate” );
          header( “Pragma: no-cache” );

          Comment


          • #6
            Re: Stop Cache

            Originally posted by Niteshade
            Which version of internet exploder are you testing with?
            Well the newest one, But does it matter? It needs to clear cache for all browsers...
            www.isomerizer.com

            Comment


            • #7
              Re: Stop Cache

              Yh :|

              Comment


              • #8
                Re: Stop Cache

                Originally posted by Niteshade
                Which version of internet exploder are you testing with?
                internet exploder is this a new web browser...... lol o/j
                Im always watching


                YoungGold

                Comment


                • #9
                  Re: Stop Cache

                  Guess noone knows :cry:
                  www.isomerizer.com

                  Comment


                  • #10
                    Re: Stop Cache

                    im sorry mate if i new believe me i would tell you.
                    Im always watching


                    YoungGold

                    Comment


                    • #11
                      Re: Stop Cache

                      if you dont know then why add a post :|
                      My Sites

                      http://urban-ghetto.com - RPG GAME http://gs-codes.com - GS NETWORK http://clickz4cash.com - PAY TO CLICK ----------------------------------------- http://adbux.org/?r=gazsr http://bux.to/?r=gazsr123 Hit me up if you need help at coding.

                      Comment


                      • #12
                        Re: Stop Cache

                        i can ask you the same question right now.
                        Im always watching


                        YoungGold

                        Comment

                        Working...
                        X