SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2001
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have a question about how no cache http headers sent in php work.
    i intend to send a pragma :: no-cache header (http 1) and a cache-control :: no-cache, must-revalidate (http 1.1) header with the page, but now my question is: how does this really work?
    what will the browser do? only not cache the html it gets, or also not cache the images and such that are on the page. i'm making a site where the frontpage and a lot of other sections are dynamically generated, and as such i want to add headers that tell the browser (and proxy too, as some providers seem to cache a lot too) not to cache the page, but off course i want the browser to have the images in cache, as the same images are used over and over on every section... i want to make sure that when the page is (dynamically) updated (every few minutes-hours), the new page is presented to the browser, but i don't want that, while surfing the site, the browser needs to get the same pictures every time again while going from one page to another that has the quite the same layout and same pictures, only different content.

    i really don't know a lot about this, and i can't find a lot of information about this neither (and i don't really get everything reading official w3.org and stuff papers)... i can't find any really easy to read information about this subject...

    thanks a lot to anyone who has some more information about this...

  2. #2
    SitePoint Addict
    Join Date
    Nov 2000
    Location
    London, UK
    Posts
    223
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know that Internet Explorer doesn't cache the text if you just give it an Expires header that's a negative number. For example, if you just put a
    Code:
    <meta http-equiv="Expires" content="-5200">
    into your head section of your templates, it won't get cached (AFAIK, but I'm not sure about proxies). I think that IE will still get your images though, which is what you want. I don't know about NS...

    Good Luck!

    ... what's the world coming to?


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
  •