SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict revlimiter's Avatar
    Join Date
    Sep 2005
    Location
    British Columbia, Canada
    Posts
    272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Site Redesigns - CSS Cache - HTTP Expires?

    Whenever a site redesign goes live I find myself having to press Shift + Refresh in order to reload the images that were cached. Is there a way to force the browsers to do this when a site redesign goes live, so that the user sees the full new site using the new CSS and images without any glitches?

    I think it involves the HTTP expires header but I'm not familiar with how it works?
    And is it also the best, most widely supported method out there?

    Thanks,
    "To make an apple pie from scratch,
    you must first create the universe.
    -Carl Sagan

  2. #2
    SitePoint Wizard
    Join Date
    Oct 2005
    Posts
    1,774
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    If you disable browser caching (if the browser heeds the request), then every image and every CSS and Javascript file will be downloaded again with every page view. You could set a expires header for a period of say, a few minutes, so you will not be wasting server resources and people's time making them download every component on every view. You can see this for ideas and read the comments section for examples. You did not mention which web server you are using or scripting language or anything else.

    http://www.askapache.com/htaccess/ap...d-expires.html


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
  •