How to stop PCs from using cached pages?

Community Forums/General Help/How to stop PCs from using cached pages?

Blitzplotter(Posted 2010) [#1]
Hi,

Is anyone aware of a little slice of code that will stop client PCs using cached versions of web pages? The reason I ask is that I maintain/update a website for s small club and frustratingly cached pages seem to persist until I click the refresh button (on PCs I have not uploaded the update with....)


GfK(Posted 2010) [#2]
Press CTRL+F5 to force a refresh, or turn off cacheing in your browser (don't recommend that last bit).


Blitzplotter(Posted 2010) [#3]
Thanks GfK, I was hoping that you could actually code something in HTML that would force a page refresh on accessing it.


Volker(Posted 2010) [#4]
http://forums.whirlpool.net.au/forum-replies-archive.cfm/397544.html
HTH


Murilo(Posted 2010) [#5]
Try adding this to the head section of your HTML:

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">


Blitzplotter(Posted 2010) [#6]
Thanks for the feedback folks.


Blitzplotter(Posted 2010) [#7]
thanks milky joe, have included the code now {;-)