SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,206
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    not to store in Temporary Internet Files

    Code:
         <meta http-equiv='pragma' content='no-cache'>
    I guessed that the code above makes not to store in the folder "Temporary "Internet Files."

    In order to test it, I made the following code.

    Code:
     index.htm
    
    <html>
    
      <head>
        <title>my secret page</title>
         <meta http-equiv='pragma' content='no-cache'>
      </head>
    
      <body>
    
           my secret content.
    
      </body>
    
    </html>
    After I delete all files in the folder "Temporary Internet Files," I open the page index.htm. Then I can still see index.htm in the folder "Temporary Internet Files."

    I like to make "index.htm" not to store in the folder "Temporary Internet Files."

    What code do I have to put in index.htm for that?

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to make your web server send the proper HTTP headers. It's a bit of an art form, really. See this tutorial for more information.
    Birnam wood is come to Dunsinane

  3. #3
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should probably also use the HTTP 1.1 Cache-Control header as well (or instead).
    Simon Pieters

  4. #4
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,206
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by zcorpan View Post
    You should probably also use the HTTP 1.1 Cache-Control header as well (or instead).
    What code should I put in the code above for using the HTTP 1.1 Cache Control Header?

  5. #5
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Read the tutorial Tommy linked to.

    HTTP headers are not in the file itself. A meta element is not reliable and proxies won't pay any attention to them. Browsers are not required to pay any attention to them (they were not intended for browsers in the first place).

    If you're using Apache then you can use .htaccess
    Code:
    <Files index.htm>
     Header set Cache-Control no-chache
     Header set Pragma no-cache
    </Files>
    Simon Pieters


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •