Microsoft KB Archive/319384

= Pages Do Not Expire as Expected After Web Site Content Change =

Article ID: 319384

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Internet Information Services 5.0
 * Microsoft Internet Information Services 6.0

-



This article was previously published under Q319384



SYMPTOMS
If you change content on a Web site, the changes do not appear as expected. Instead, Internet Information Services (IIS) 5.0 and later returns the old content.



CAUSE
This can occur if HTTP compression is enabled on the Web server. Enabling HTTP compression introduces a new metabase key named HcCacheControlHeader. The default value of HcCacheControlHeader is set to max-age=86400 (that is, 86400 seconds). This means that the Web site stays in the cache of the browser for 24 hours.



RESOLUTION
 On your server, open a command prompt. Change to your :\InetPub\AdminScripts folder, where   is the drive that you specified for your IIS documents. Run the following command:

CSCRIPT.EXE ADSUTIL.VBS SET W3SVC/Filters/Compression/Parameters/HcCacheControlHeader &quot;max-age=0&quot;

 Stop and restart the IISAdmin service. Restart the WWW service.

<div class="workaround_section">

WORKAROUND
If the client refreshes the content (for example, by pressing the F5 key), the IIS cache is updated and shows the changed content.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

MORE INFORMATION
Setting the value of Response.Expires to 0 in the relevant ASP page does not resolve the issue.

Additional query words: iis 5.0 iis5 iis6 iis 6.0

Keywords: kbprb KB319384

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.