Don't Cache ASP pages
================
LD ASP Error:
we hide the client but data is fetched from some branch.
but on LD ASp server, no data is fetched for that hidden client.
Reason
data is coming from cache.
=================IIS Settings================
iis > Http Header > http headers enable content expiration
==========
ISAPI applications (Active Server Pages Web pages) can be cached on Internet Information Server.Use these steps to disable caching:
inetmgr > iis > website >home directory > virtual directory > Configuration > cache isapi application
Now IIS Application so that it won't cache your ASP pages. But this alone is not enough. At the top of the .asp page that you do not want cached, add the following line: <% Response.Expires=0 %>
==========
stopping and restarting both the web site and the application
pool, we've also stopped and restarted IIS Admin Service and the WWW
publishing service.
====================ASP Page================
<% Response.Expires = 0 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" %>
===============Meta Tags===============
===================Registry Settings=================
HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\UriEnabledCache=0
================
If problem is not solved then this is due to networking stack between client browser and the server. It looks like a proxy or browser-side cache.
=============Browser-side Cache===========
Retain server results in a browser-side cache. The cache holds query-result pairs; the queries are cache keys and the server results are server results. So, whenever the browser performs an XMLHttpRequest Call, it first checks the cache. If the query is held as a key in the cache, the corresponding value is used as the result, and there is no need to access the server.
==========
ipconfig /flushdns
Modify the behavior of the Microsoft Windows DNS caching algorithm by setting two registry entries in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters registry key.
The MaxCacheTtl represents the maximum time that the results of a DNS lookup will be cached. The default value is 86,400 seconds. If you set this value to 1, DNS entries will only be cashed for a single second.
MaxNegativeCacheTtl represents the maximim time that the results of a failed DNS lookup will be cached. The default value is 900 seconds. If you set this value to 0, failed DNS lookups will not be cached.
==========
No comments:
Post a Comment