SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast Laura1959's Avatar
    Join Date
    Sep 2004
    Location
    Buenos Aires
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ignore cache: what does 'content="5"' stand for?

    Hello

    I need to force browsers to ignore their cache on certain pages of a website. I've picked this piece of code from http://support.microsoft.com/kb/q222064/

    Code:
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="REFRESH" CONTENT="5">
    <TITLE> Pragma No-cache </TITLE>
    </HEAD>
    
    <BODY>
    This is an example of where to place the second header section<br>
    so that the "Pragama, No-Cache" metatag will work as it is supposed to.<br>
    </BODY>
    
    <HEAD>
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    </HEAD>
    </HTML>
    About the two heads in an html page, I've read the same in Adobe Forums, and they seem to work well.
    The fact is that I would like the page to be re-read from the server only once per sesion, and not each time that the user calls it. I was wondering if the "content=5" had anything to do with this? What does the "5" actually mean? I've also seen some "content=-1" someplace else.

    Thanks

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That means the browser should automatically refresh the page every 5 seconds.
    This is not recommended for accessibility reasons; a screen reader, for instance, will start reading from the top of the page after each such refresh.
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Enthusiast Laura1959's Avatar
    Join Date
    Sep 2004
    Location
    Buenos Aires
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So how would you solve mi problem then? Is there any way to tell the browser to read the page from the server once per sesion?


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
  •