Clear the cache problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vivekgs2007
    New Member
    • Mar 2010
    • 62

    Clear the cache problem

    Hi to all,
    I have created a site for search engine of maps, here the user can search the maps by Name, Location and by Scale. It is working properly, But the problem is in searching text box. I have used the ajax auto complete for searching.
    if a user search the map for second time the same map..the stored cache result will displayed...
    my question is to clear the all cache when the user logout the site.
    i have used the meta tag
    Code:
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="pragma" content="no-cache" />
    <META HTTP-EQUIV="expires" CONTENT="0">
    but its not clearing the cache...
    please help me in this...
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    those tags don’t clear the JavaScript or Browser cache. they are used to set caching preferences for computers between your client and the server.

    Comment

    • vivekgs2007
      New Member
      • Mar 2010
      • 62

      #3
      soo what is the final solution for this....is their any solution to this..

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        try setting an Expires header

        Comment

        • vivekgs2007
          New Member
          • Mar 2010
          • 62

          #5
          Hi,
          I added this one..
          Code:
          <?php session_start();
          header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
          header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
          ?>
          but no changes

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            then you have to change the browser settings.

            Comment

            • vivekgs2007
              New Member
              • Mar 2010
              • 62

              #7
              how to change the browser setting of the clients

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                hit ⌘ + . or enter about:config in the address bar.

                Comment

                Working...