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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Caching problem

Status
Not open for further replies.

rewebb

Technical User
Dec 12, 2001
143
GB
We have continuing problems with asp pages being cached and this is starting to drive me insane!

I have tried the following to prevent asp pages from being cached, but whenever we change the content of an asp (either the page itself or source data if the asp reads from a database) the page displayed is the old one. The only way to see the new content is to press F5 (or click refresh) in the browser.

As this is on an intranet we use IE5 throughout and have set the browser to check for newer pages on "every visit to the page".

We use a proxy server, but we have IE5 configured NOT to use the proxy for Local intranet address.

In IIS (version 5) we have enabled content expiration and set content to expire after 1 minute.

I've disabled asp caching (Application configuration | Process Options)

I've disabled "Cache ISAPI Applications"

In the asp we use response.expires=-1 as the first line (we've tried response.expires=0 too)

We've also tried setting custom http headers of "Cache-Control: no-cache"

...and STILL we get asp caching.

Can *anyone* tell how we can stop asps from being cached???

 
I have this problem sometimes too, although I would have thought at least one of your solutions would work. I use a simple meta tag (although obviously this shouldn't be any different to the custom http header but you never know). try adding

<META HTTP-EQUIV=&quot;expires&quot; CONTENT=&quot;0&quot;>
 
Hi LucyP - thanks for the suggestion.

I'd usually use this method when I'm writing CGI apps, so I'd not considered it with an asp. But I'll try it and see. (It won't be until tomrrow as I'm just going home for the evening....)
 
I tried the <META HTTP-EQUIV=&quot;expires&quot; CONTENT=&quot;0&quot;> and also tried <HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;> but to no avail. We still get pages being cached.

After more work I'm convinced that this is not an IIS issue but an Internet Explorer problem. Are there any known problems with IE5 caching content?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top