I've got an ASP app that works fine on IIS 5.0, but having trouble getting it to work properly on IIS 6.0. The application creates static .htm pages and updating existing ones. On IIS 6.0, when one of the old htm pages are updated, IIS 6.0 still displays the original .htm page. I can directly open the generated .htm files on the server, and the changes are definitely there, but IIS 6.0 seems to be keeping the original version cached somewhere. How do I turn this off?

I've tried adding a custom header of Cache-Control with a value of no-cache. I've also tried adding a registry key called UriEnableCache with a value of 0 (To shut it off) to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters. Still no luck.

I'm sure it's not a browser caching issue, as I've set the browser cache to "Check for new versions of pages every time" as well as hit the application from machines that have never before visited the site, and even those return the old content. Also, as the app running on IIS 5.0 does not exhibit the problem, I'm sure it is a server problem, not a browser problem. Also, the connections are direct, not through a proxy server.

Any help on this most appreciated!

Re: IIS 6.0 - Cannot update static HTML pages by Ken

Ken
Sun May 23 23:55:52 CDT 2004

I think this would be http.sys kernel mode caching that you are seeing
(since it would think that .htm files are static by default)

You could set md_vr_no_cache to 1. Check page 596 of the IIS 6.0 Resource
Kit (Chapter 7 Web Server Scalability). Also check the online IIS docs in
the metabase reference for more information on that key.

You can get the IIS Res Kit from:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyid=80A1B6E6-829E-49B7-8C02-333D9C148E69


Cheers
Ken

"Klom Dark" <anonymous@discussions.microsoft.com> wrote in message
news:3AB611BF-5176-4DDF-90EE-F6A641E9C9C6@microsoft.com...
: I've got an ASP app that works fine on IIS 5.0, but having trouble getting
it to work properly on IIS 6.0. The application creates static .htm pages
and updating existing ones. On IIS 6.0, when one of the old htm pages are
updated, IIS 6.0 still displays the original .htm page. I can directly open
the generated .htm files on the server, and the changes are definitely
there, but IIS 6.0 seems to be keeping the original version cached
somewhere. How do I turn this off?
:
: I've tried adding a custom header of Cache-Control with a value of
no-cache. I've also tried adding a registry key called UriEnableCache with a
value of 0 (To shut it off) to
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters. Still
no luck.
:
: I'm sure it's not a browser caching issue, as I've set the browser cache
to "Check for new versions of pages every time" as well as hit the
application from machines that have never before visited the site, and even
those return the old content. Also, as the app running on IIS 5.0 does not
exhibit the problem, I'm sure it is a server problem, not a browser problem.
Also, the connections are direct, not through a proxy server.
:
: Any help on this most appreciated!



Re: IIS 6.0 - Cannot update static HTML pages by Ken

Ken
Mon May 24 21:01:03 CDT 2004

Odd.

I would stop IIS services. Edit metabase. Restart IIS services. If the
setting still disappears something very odd is happening.

When IIS is running, it is using an inmemory copy of the metabase, and so
the physical file, and the inmemory copy need to be synchronised, and I
suppose it's possible that one copy accidently overrode the other copy
(though I've never heard of that happening unless you edit both the inmemory
copy, and the metabase for a particular node in the metabase)

Cheers
Ken

"Klom Dark" <anonymous@discussions.microsoft.com> wrote in message
news:B44994B3-2101-4945-AC3F-E5B64D87D71A@microsoft.com...
: Well, maybe not... I made the change, it worked for a bit, then stopped. I
re-opened metabase.xml and the NoCache change was gone. WTF?



Re: IIS 6.0 - Cannot update static HTML pages by anonymous

anonymous
Mon May 24 22:01:04 CDT 2004

Hmmm. Tried that. Still changes back.

I am seeing the following in C:\WINDOWS\system32\inetsrv\IIS Config_0000000000.log. Looks like it isn't liking the entry (NoCache="TRUE") Am I putting in the wrong thing

===================== IIS Config ====================
Time: 5/24/2004 21:49:01.30
Type: Warnin
Category: Catalo
Event ID: 428
The property (NoCache) is not valid for the class it has been associated with. This property will be ignored. Incorrect XML:NoCach
ErrorCode : 0x8021052
Interceptor : 1
OperationType : Populat
Table : MBPropert
ConfigurationSource : C:\WINDOWS\system32\inetsrv\EditWhileRunning_Metabase.xm
MajorVersion : 248

Re: IIS 6.0 - Cannot update static HTML pages by anonymous

anonymous
Mon May 24 22:16:04 CDT 2004

Also tried putting in MD_VR_NO_CACHE="1" instead, doesn't like that either. Do you have a syntax example and where it needs to go in Metabase.xml? I've been putting it in the <IIsWebService Location ="/LM/W3SVC" section

===================== IIS Config ====================
Time: 5/24/2004 22:09:47.71
Type: Warnin
Category: Catalo
Event ID: 428
The property (MD_VR_NO_CACHE) is not valid for the class it has been associated with. This property will be ignored. Incorrect XML:MD_VR_NO_CACH
ErrorCode : 0x8021052
Interceptor : 1
OperationType : Populat
Table : MBPropert
ConfigurationSource : C:\WINDOWS\system32\inetsrv\EditWhileRunning_Metabase.xm
MajorVersion : 250

Re: IIS 6.0 - Cannot update static HTML pages by Mitch

Mitch
Fri Jun 18 12:30:26 CDT 2004

Hi Klom:

Try the following using Metabase Explorer (see http://tinyurl.com/jieu).
Back up your metabase first, then open Metabase Explorer and right-click in
the details pane for the website or directory and select New --> DWORD
Record./ Select DisableStaticFileCache under Record Name or Identifier and
click OK. Then set the value to 1 and reboot.

--
Cheers, Mitch Tulloch
Windows Server Hacks (O'Reilly Media)
http://www.oreilly.com/catalog/winsvrhks/

This posting is provided AS IS with no warranties and confers no rights.


"Klom Dark" <anonymous@discussions.microsoft.com> wrote in message
news:B44994B3-2101-4945-AC3F-E5B64D87D71A@microsoft.com...
> Well, maybe not... I made the change, it worked for a bit, then stopped. I
re-opened metabase.xml and the NoCache change was gone. WTF?