1 Reply Latest reply on Sep 12, 2006 11:28 AM by Newsgroup_User

    prevent cache

    Level 7
      hi


      there is a way to hide a file from users cache when i use a flash form post?
      like that:

      im doing a loadVariablesNum("name.asp", numberX, "POST");

      the file "name.asp" will be cached by browser... and anyone can access the
      file...
      how can i prevent that? there is a way?


      gustavo


        • 1. Re: prevent cache
          Level 7
          The browser controls whether items are cached -- and not all browsers comply
          with cache control headers. However, you might want to add this to your ASP
          page:

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