Welcome to TalkGraphics.com
Results 1 to 8 of 8

Thread: Page Refresh

  1. #1

    Default

    Hey,
    How do the big sites refresh every time you go to them, i know there is a meta tag
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">,
    but the sites i've looked at don't even have this in there code?
    anyone know?
    cheers
    chuck
    IP

  2. #2

    Default

    Hey,
    How do the big sites refresh every time you go to them, i know there is a meta tag
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">,
    but the sites i've looked at don't even have this in there code?
    anyone know?
    cheers
    chuck
    IP

  3. #3
    Join Date
    Aug 2000
    Location
    Austria
    Posts
    1,081

    Default

    The 'big sites' mostly use ASP, PHP, CFM or any other type of dynamic content.

    As the pages are generated 'on the fly' and differently each time, your browser will recognize them as 'new' and load them again from the server.

    Your Meta-Tag is principally OK, but you only need it for static HTML-pages.
    And I personally found, that it won't always work. This seems to depend on the browser (??) or your provider's cache.

    Wolfgang
    IP

  4. #4

    Default

    thanks wolfgang,
    so what do you guys use?
    chuck
    IP

  5. #5
    Join Date
    Aug 2000
    Location
    NS Canada
    Posts
    212

    Default

    Hi Chuck ...

    I believe that putting a past date is more effective ie:

    <meta HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">

    Also, by default, most browsers are set to check the server dates as to whether the page has been updated since the last visit. This shouldn't be a problem unless your page is being updated on the fly and the browser hasn't been set to check "Every Time".

    Re: dynamically created pages - there are problems using these as, sometimes, they cannot be bookmarked. A frustration for newbie users.

    cfn ... Jen
    Jen Worden
    Web Developer
    www.meadoworks.com
    cfn ... Jen

    Jen Worden
    Web Developer
    www.meadoworks.com
    IP

  6. #6

    Default

    Hey Jen,
    thanks, So how exactly does that work, does it matter what date i put in the meta tag?
    chuck
    IP

  7. #7
    Join Date
    Aug 2000
    Location
    Austria
    Posts
    1,081

    Default

    Chuck,

    usually, all Meta-Tags go into the head-part of your page.

    Like:

    <head>
    <meta HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">
    <title>Great Homepage Title</title>
    </head>

    ... just as an example, using Jen's tip.

    By the way Jen, do you know if your method still works when <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> fails ??

    Wolfgang
    IP

  8. #8
    Join Date
    Aug 2000
    Location
    NS Canada
    Posts
    212

    Default

    Hi Chuck ...

    Nope, the date doesn't matter but you have to use the GMT format. Obviously in order to work, the date should have already have passed. [img]/infopop/emoticons/icon_smile.gif[/img]

    Wolfgang, my understanding is, yes. I believe the no-cache was originally an IE-ism that wasn't supported by the W3C but the "Expires" version works in all browsers and is W3C compliant.

    cfn ... Jen
    Jen Worden
    Web Developer
    www.meadoworks.com
    cfn ... Jen

    Jen Worden
    Web Developer
    www.meadoworks.com
    IP

 

 

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
  •