IDNetters Forums

Technical News & Discussion => IDNet Help => Topic started by: cromar on Oct 20, 2008, 22:28:19

Title: Forcing browser
Post by: cromar on Oct 20, 2008, 22:28:19
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.



Title: Re: Forcing browser
Post by: vitriol on Oct 20, 2008, 22:43:09
Not sure if this will help but normally CTRL+F5 does a force refresh that bypasses the cache.
Title: Re: Forcing browser to refresh
Post by: cromar on Oct 20, 2008, 22:46:28
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.
Title: Re: Forcing browser
Post by: Sebby on Oct 20, 2008, 22:47:48
<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">
Title: Re: Forcing browser
Post by: cromar on Oct 20, 2008, 22:48:53
That's great. Many thanks.
Title: Re: Forcing browser
Post by: Sebby on Oct 20, 2008, 22:49:43
NP. :)
Title: Re: Forcing browser
Post by: Simon on Oct 20, 2008, 23:07:58
:welc:  Cromar, glad we could help!  :karma: