[thelist] Really Annoying IIS ASP Caching Problem

Ken Schaefer ken at adOpenStatic.com
Tue Sep 30 19:56:08 CDT 2003


Hi Rob,

Couple of quick things:

a) The code you have below can be compressed a little to:

Response.AddHeader "Pragma", "no-cache"
Response.ExpiresAbsolute = #1/1/1980#
Response.AddHeader "cache-control", "must-revalidate, private, no-cache"

(actually, that last line can be):
Response.AddHeader "cache-control", "no-cache"
and no browser or proxy should cache the page (certainly not IE v6)

b) When you unchecked the "cache ISAPI applications" checkbox in the IIS MMC
Snapin, did you restart IIS? Typically these caching issues occur when file
change notification isn't working properly, or IIS is somehow ignoring the
file change notifications that Windows is sending to IIS (telling IIS that
the file has changed). However, once you've changed the IIS settings, you do
need to restart IIS.

It's been a long time since I've really had to work with NT issues, so my
memory is a little rusty. Certainly, these problems have largely (99%+ of
the time) been rectified in Windows 2000 (if you're running SP4) and Windows
2003.

Cheers
Ken


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Rob Smith" <rob.smith at THERMON.com>
Subject: [thelist] Really Annoying IIS ASP Caching Problem


: I have an ASP page that basically acts as a toggle page. I.e.
: Click the account to enable the disabled account. Or Click the
: disabled account to make the account active. The page calls
: itself with each click. I've tried
: this:
:
: Response.CacheControl = "no-cache"
: Response.AddHeader "Pragma", "no-cache"
: Response.Expires = -10000
: Response.ExpiresAbsolute = #1/1/1980#
: Response.AddHeader "cache-control", "must-revalidate"
: Response.AddHeader "cache-control", "private"
: Response.CacheControl = "Erase"
:
: ... and ...
:
: <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
: <META HTTP-EQUIV="Expires" CONTENT="-1">
:
: ... and ...
:
: Created an application IIS (4), set it to run in a separate memory space.
: Configured the Process Options to "Do Not Cache ASP files".
:
: ... and ...
:
: Deleted my local cache on my browser IE 6. Set my browser to get a new
page
: with every visit to the page.
:
: Still the page shows old information after 1 click. Even after all that!!!
: What else can I try?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the thelist mailing list