Respect my Cache-control...

Discussion in 'Web Design and Development' started by londonweb, Jan 28, 2006.

  1. macrumors 6502

    londonweb

    Joined:
    Sep 14, 2005
    Location:
    london
    #1
    I've got a problem with a client's site whereby each time I update it for him, his browser won't download the new version and he just sees the old one. I'm not sure what browser he's using, but I've tried it Explorer on the PC and Safari and Firefox on the mac. Netscape on the PC does not download the new one until I manually empty the cache.

    I have put the following lines of code in to try to prevent this, to no avail:

    <meta http-equiv="Expires" content="Sat, 27 Jan 2005 18:00:00 GMT" />
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Cache-Control" content="no-cache"/>

    I have just read something that implies that the problem could be to do with the server, and that it is possible to enter the cache control instructions directly into the HTTP headers on the server, but I've no idea how to do this.

    This would make sense as my client set up his own hosting, and the other sites that I manage don't have the same problem.

    site in question: www.david-goldman.co.uk

    Any ideas?
     
  2. macrumors member

    Joined:
    Nov 2, 2005
    Location:
    Atlanta, Georgia
    #2
    Try This

    No cache code
    ................................................................................
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

    Refresh page code (5 is seconds)

    <META HTTP-EQUIV="REFRESH" CONTENT="5">
    ................................................................................
    Paste just the meta lines into your head
     

Share This Page