IIS serves stale content when the content is stored on a VHD


Consider the following scenario. You are hosting a web application on Microsoft Internet Information Services (IIS) 8.0 or earlier. The content for your web application is stored on a Virtual Hard Drive (VHD). When you make an update to the content, such as adding a new version of an image file or editing text on a page, you expect that the updated content will be served to incoming web requests. However in this scenario the updated content is not displayed, and incoming web requests are responded to with the old content version.


This behavior occurs because File Change Notifications (FCN) do not traverse across mount points. Since HTTP.sys is not notified that a new version of the content is available, it continues to serve the version of the content it has stored in its kernel-mode cache.


To work around this behavior, choose one of the following options:

  1. Manually flush the HTTP.sys cache for the web application after making updates to the content stored on the VHD. To flush the HTTP.sys cache for the application, restart the application pool.


  2. Do not store your content on a VHD.


ID d'article : 2814040 - Dernière mise à jour : 16 févr. 2013 - Révision : 1