A question on website caching

TheGuy

Expert Member
Joined
Sep 14, 2009
Messages
2,974
Reaction score
19
Location
Jozi
Hi Guys

I client of mine had a wepage designed by a developer. Now they need to upload documents to the website. Then when it's done thousands of people connect to the site and download the documents.

The problem is that when people log in again the page loads from cache and the new documents are not displayed. The people downloading the documents is from different companies all over the world so you can't just tell them all to press ctrl+F5.

Is there a way to force a refresh every time a user connects to the website?

I checked the page source of the site and there is some HTML, CSS and Javascript in there.
 
<meta http-equiv="expires" content="mon, 27 sep 2015 14:30:00 GMT">


Not bullet proof . Obviously - change the date.
 
<meta http-equiv="expires" content="mon, 27 sep 2015 14:30:00 GMT">


Not bullet proof . Obviously - change the date.

Does this mean that the content will expire after a certain time and the browser will request a fresh copy?
 
This generally is not a server side issue but a client side issue. A quick and easy method is to add the date to the file name. This way the file is always seen to be new and unique (provided that you do not have more than one doc a day. Many browsers ignore meta tags and there is not way to force it.
 
Top
Sign up to the MyBroadband newsletter
X