Friday, December 16, 2011

Flowing Fix: Force a visitor's browser to always load a fresh version of your website

"HELP!  I just updated my website and when I visit the site I don't see the changes."  This is a common problem that occurs when updating a website in which can be easily be resolved by clearing your browser cache; however,  your site's visitors have no way of knowing this and they might not be able to see the updated site.  A quick solution is to include the following right before the close of the header section of the HTML code:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">

If you are using Apple's iWeb, you cannot directly edit the header code in iWeb; however after you publish it you can edit the html files to include the above META code in the header section.  This can be tedious, but luckily there is a FREE program iWeb SEO tool (http://www.ragesw.com/products/iweb-seo-tool.html)  which helps easily add this meta code and other tweaks as well as help publish the updated website.


(for other  HTML tags see http://www.i18nguy.com/markup/metatags.html )

No comments:

Post a Comment