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

Possible to clear server cache?

Status
Not open for further replies.

shelbytll

Programmer
Dec 7, 2001
135
SG
Is there a way to clear the server cache? i did
<%Response.CacheControl = &quot;no-cache&quot;%> in my frame page but it doesn't seems to clear away the cache.
 
If you are talking about the problem that the client does not see the current data because the client has the page stored in the cache you could try putting this on top of the asp page:
<% Response.CacheControl = &quot;no-cache&quot; %>
<% Response.AddHeader &quot;Pragma&quot;, &quot;no-cache&quot; %>
<% Response.Expires = -1 %>
If you have problems removing a file because the server stores it in cache you should try to rename it first and then remove it (I had this problem when users of my IIS application tried to change their picture).
Another way to work around this is to lower the fillowing value in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Inetinfo\Parameters\ObjectCacheTTL (REG_DWORD)
See msdn on this:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top