noob website question....

railer

Golden Member
Apr 15, 2000
1,552
69
91
I update/maintain the website for my local hobby group, and I know very little about web design. Yet, I manage. Anyway, when making updates to our website, is there something I can or should be doing to push the latest version of the webpage to end users, or is that completely dependent on the end users web browser to pull the most recent version, versus a locally cached version?
I ask because at least one of my end users never seems to be able to view the most recent version of the website, without manually refreshing his browser via f5.
I never seem to have this issue even when verifying our website over multiple PC's, tablets and phones, so I'm just wondering if this is an end user browser issue, or is something that I can resolve on the web page.
Thanks
 

uclabachelor

Senior member
Nov 9, 2009
448
0
71
The easiest way in your situation (I'm assuming your website contains static html pages) is to add two meta tags:

<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

That'll ensure browsers are loading the latest html file.

If your website is not using static html files and instead are producing the page dynamically, you'll can still add the two meta tags above or output a header to force browsers to submit a new request, ie, "Cache-Control: no-cache"