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

HELP!! ASP Pages caching 1

Status
Not open for further replies.

Gorkem

Programmer
Jun 18, 2002
259
CA
I have an ASP page that I had updated, however it is being cached somewhere and I can't seem to find out where. I have cleared all my cache in my browser, even tried other machines which have NEVER been to the site with same results.

I put the following code into the new page but it did not work. Where could the problem be?

<% Response.AddHeader &quot;cache-control&quot;, &quot;private&quot; %>
<% Response.AddHeader &quot;pragma&quot;, &quot;no-cache&quot; %>
<%
Response.Expires = -1
Response.cachecontrol=&quot;private&quot;
%>

Any ideas??

Thanks.
Gorkem.
 
Gorkem,

Put this at the top of your web page, first line after title.

<html>
<head>
<title>My web page</title>
<META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>
...
...


fengshui_1998
 
That doesn't seem to help..

Is this a problem with IIS itself?

----
Gorkem.
 
you can try this in the page
Response.AddHeader &quot;pragma&quot;,&quot;no-cache&quot;
Response.AddHeader &quot;cache-control&quot;,&quot;private&quot;
Response.CacheControl = &quot;no-cache&quot;
or
in IIS
---In Internet Service Manager, select the Web site or the starting point directory of an application.
---Open the directory's property sheets, and then click the Home Directory tab.
---Click the Configuration button.
---Click the App Mappings tab, and then deselect the Cache ISAPI Applications check box. You cannot mandate productivity, you must provide the tools to let people become their best.
-Steve Jobs
admin@onpntwebdesigns.com
 
The Cache ISAPI Applications was checked.. but I have now disabled it.. Is there a way to clear the existing cache in IIS?? The problem is still there.. even though it is now unchecked, the old page is still showing up..

 
if you hit ctrl + F5 you will clear the cache. do this in the browser window. You cannot mandate productivity, you must provide the tools to let people become their best.
-Steve Jobs
admin@onpntwebdesigns.com
 
Nope.. still no luck.. Is my only option to reboot the server?

 
Sounds like that may be the way to go. Usually the ctrl+F5 always clears my cache so I'm at a loss.

Thanks for the star by the way. You cannot mandate productivity, you must provide the tools to let people become their best.
-Steve Jobs
admin@onpntwebdesigns.com
 
I guess I have no other options.. I was trying to avoid rebooting because the site is a high traffic site...

Thanks for all your help.
 
Gorkem,

You should not need to reboot the server. I beleieve it is your browser that does the cacheing, not the server. Check your browser settings.


fengshui_1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top