Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Webpages not automatically refreshed

Status
Not open for further replies.

wickyd

Technical User
Feb 14, 2002
57
ZA
Hi folx

Our company has a static HTML website. There is an index.html file which is loaded when the user goes to the company url.

Yesterday, I updated the website by making small text changes to all the HTML files except index.html.

After I uploaded the changes, I went to the website only to find the old copy of all of the pages. I had to press F5 to get a new copy of the pages I changed. A colleague checked the website later that evening at home and encountered the same problem.

This is a concern to me as I do not have to refresh any of the news sites I frequent on a daily basis. I always get the latest copy when I connect to their sites.

What could be the problem, which is causing IE to load the cached copy of the website instead of the new copy? How can I prevent this in the future, so that the users that visit the company's website always get the latest copy?

I am using WinXP Pro. with IE 6 (with default cache settings)

Thank you.

Kind regards
wickyd
 
If your company has a proxy server, then the caching you have experienced may be as a result of the proxy server not having an expired cache. Just a thought.

Jeff
 
That is an interesting thought.

Our company doesn't have a proxy server in place but the company we use to dial up to the internet does and we do connect via their proxy.

How does that explain that I don't have this problem when I visit news websites more than once a day even though I am connected via our dial-up host's proxy server?

Thank you.

wickyd
 
Try placing the following
Code:
<%
Response.Expires = -1 
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-store"
%>
somewhere between the <HEAD></HEAD> tags of your page. Automatically refreshes every time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top