Make sure my website is always uptodate on users machine?

duderoo

Expert Member
Joined
Jun 7, 2005
Messages
3,410
Reaction score
246
Location
Earth
How can I ensure that each time a users access my website they have the latest view, as I sometime have to click on Ctrl F5.
 
as far as i know you set the time that the page may be cache to 1 sec. or set it to no cache in the html.
 
I put this in the header of all my html pages

Code:
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Expires" content="Tue,01 Dec 1990 06:30:00 GMT"
 
You can set the cache expire header to a date in the past forcing the browser to re-download that file. This doesn't work in all browsers and you'll have to use a combination of no caching techniques to achieve this affect across all browsers; try googling a bit on preventing website caching.
 
Top
Sign up to the MyBroadband newsletter
X