Skip navigation
dansmudge
Currently Being Moderated

Firefox displaying old version of site until 'history cleared'.

Jul 2, 2012 7:25 AM

Hi

 

I've been making a few changes to my site and once I upload the new files the site updates when viewed in Safari, Chrome etc etc

 

But if I view the site in Firefox the changes don't appear.

 

Through trial and error I've worked out that if I 'clear recent history' then next time I open my site it updates correctly. So I'm presuming Firefox somehow saves my old site pages and shows those instead?

 

Obviously this is annoying to have to clear my history.

But it is also worrying that if I ask a client to view my site but they have already viewed it in the past, they might not see the changes I've made?

 

Help please!

 

Many thanks

 

Dan

 
Replies
  • Currently Being Moderated
    Jul 2, 2012 7:36 AM   in reply to dansmudge

    It depends on what is going on, but from experience Firefox caches pages longer than most other browsers.  The worst is XML to the point where I have started to attached a string of the date after each time an XML file is updated.  There are overrides for the cache in most browsers.  You can usually hold down "shift" when hitting refresh, or there is shift+cmd+r or shift+ctrl+r and I think ctrl+F5 works too.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 7:54 AM   in reply to dansmudge

    Comparing to a news site is something different.  A site of the scale of a CNN or BBC, use Content Management Systems (CMS) and the data is stored in the database.  So whenever a page loads the data is queried from the database, it can be cached, but usually it's not.  If you are using static pages there is no way to get around this.

     

    You can make your site in a CMS if you want from Drupal to Joomla to Wordpress to PyroCMS, Perch, CMS Made Simple, and the list goes on.  If you are already using a CMS and it's caching when it shouldn't then that is an issue with the CMS that we need to examine.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 2, 2012 10:58 AM   in reply to dansmudge

    Add this to the meta tag in all your pages.  Change date and time as needed.

     

    <meta http-equiv="Last-Modified" content="02 July, 2012 19:33:00 GMT" />

     

    In theory, the browser will examine content in the last cached version and compare it with content on the remote server.  If server content is more recent, it should be displayed.  That said, this is not 100% foolproof. 

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 10:47 AM   in reply to dansmudge

    That's correct.   If you want to be able to edit meta data on child pages, you'll need to add an editable region to your template like so. 

     

    <!-- InstanceBeginEditable name="meta" -->

    <meta http-equiv="Last-Modified" content="02 July, 2012 19:33:00 GMT" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <!-- InstanceEndEditable -->

     

    <!-- InstanceBeginEditable name="doctitle" -->
    <title>dansmithdesign /  CV p1</title>
    <!-- InstanceEndEditable -->

     

    More on Meta Tags

    http://www.w3schools.com/tags/tag_meta.asp

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 3, 2012 11:02 AM   in reply to Nancy O.

    You wouldn't need to add a separate editable region to do that though.  You could also just put the meta content into the existing 'doctitle' or 'head' editable regions.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points