Forcing browser

Started by cromar, Oct 20, 2008, 22:28:19

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cromar

I'm having a small problem with a site I run. When I make an update to the site (usually weekly) and upload, the changes are not shown to users unless they go to a page and also refresh it. Otherwise, the older version of the page is shown since it is in their cache.

I understand I can insert a meta tag to force their browser to refresh but I'm not sure of the format.


I'm a 77 years young newbie idnetter and any help would be appreciated.




vitriol

Not sure if this will help but normally CTRL+F5 does a force refresh that bypasses the cache.

cromar

Sorry - I obviously didn't explain my problem well enough. I'm seeking a meta tag that I can insert in my web page so that when it is accessed by users the latest version is displayed automatically without any action by the user.

Sebby

<meta http-equiv="pragma" content="no-cache">

You might as well stick in the following as well for the benefit of older browsers:

<meta http-equiv="expires" content="-1">

cromar

That's great. Many thanks.

Sebby


Simon

:welc:  Cromar, glad we could help!  :karma:
Simon.
--
This post reflects my own views, opinions and experience, not those of IDNet.