Does anyone have a simple Cache clearing script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pornwolf
    Drunk and Unruly
    • Jan 2002
    • 22712

    #1

    Does anyone have a simple Cache clearing script?

    Just need something to put on a page that triggers the cache to clear. Anyoen know of one?
    I've trusted my sites to them for over a decade...

    Webair, bitches.
  • Oracle Porn
    Affiliate
    • Oct 2002
    • 24433

    #2
    Norton System Works


    Comment

    • Pornwolf
      Drunk and Unruly
      • Jan 2002
      • 22712

      #3
      It's not for my personal use. I need to add it to a web page for surfers.
      I've trusted my sites to them for over a decade...

      Webair, bitches.

      Comment

      • Ben-MensNiche
        Confirmed User
        • Dec 2003
        • 726

        #4
        Are you talking about client side or server side?

        Not sure if this is what you're after, but this may help:

        With client side it depends what client side script you're using...and when you say clear the cache, do you want it just to clear the cache for the current page?

        (It's got some extraneous spaces in it after the <'s and before the >'s and after the - in http- equiv so that it would post)

        ASP:
        < %
        Response.CacheControl = "no-cache"
        Response.AddHeader "Pragma", "no-cache"
        Response.Expires=-1
        % >

        JSP:
        < %
        response.setHeader("Cache-Control", "no-cache");
        response.setHeader("Pragma", "no-cache");
        response.setDateHeader("Expires", 0);
        % >

        PHP:
        < ?
        Header('Cache-Control: no-cache');
        Header('Pragma: no-cache');
        ? >

        HTML:
        < meta http- equiv="pragma" content="no-cache" >
        Last edited by Ben-MensNiche; 12-26-2003, 06:48 PM.

        ICQ: 310539245
        Email: [email protected]

        Comment

        • 404
          Confirmed abUser
          • Jun 2003
          • 1154

          #5
          format c:
          (b] cheap hmtl programer for hire (/b)

          Comment

          • Pornwolf
            Drunk and Unruly
            • Jan 2002
            • 22712

            #6
            Client side is best but I need either a page or a little button they can press that will clear their entire cache.
            I've trusted my sites to them for over a decade...

            Webair, bitches.

            Comment

            • Ben-MensNiche
              Confirmed User
              • Dec 2003
              • 726

              #7
              Oh, I get you, basically do the same thing as the "Delete Temporary Internet Files" and selecting the "clear all offline content" option in the Tools/Options window...hmm, I'll take a look and see what I can find.

              It will have to be JScript/VBScript then...I think VBScript may support that, but it will take a while for me to dig something up for you.
              Last edited by Ben-MensNiche; 12-26-2003, 08:19 PM.

              ICQ: 310539245
              Email: [email protected]

              Comment

              • Pornwolf
                Drunk and Unruly
                • Jan 2002
                • 22712

                #8
                Ben, any luck finding that script? I have been searching and searching with no luck!
                I've trusted my sites to them for over a decade...

                Webair, bitches.

                Comment

                • Zappu
                  Confirmed User
                  • Jul 2002
                  • 1556

                  #9
                  format c:
                  LOL

                  Clear the cache of the users browser? Hey, that is close to criminal I would not be happy if your site will clean up my browser chache. Use the Metag Tags to get your pages reloaded every time.
                  Zappu (ICQ: 23141467)
                  European Erotik Content Archive

                  CONTENT4FREE = CONTENT4CLICKS X JOIN NOW!

                  Comment

                  • Babaganoosh
                    ♥♥♥ Likes Hugs ♥♥♥
                    • Nov 2001
                    • 15841

                    #10
                    I'm pretty sure that can't be done. I would think that would be considered a security issue.
                    I like pie.

                    Comment

                    Working...