How to find out which files are in the usermode cache in IIS7.5?

The kernelmode static content cache is part of HTTP.SYS and is fairly straightforward to configure. When debugging, you can always check the contents of the kernelmode cache with the command:

netsh http show cachestate

But the usermode cache in IIS is much harder to debug. There seems to be no room for verification. Is there an easy way to see which files are in the usermode cache inside the web application workflow?

In our project, we have an ISAPI module that introspects the requested file before returning them to the browser. Because of this, we cannot use the standard static content cache in IIS. We have caching issues when IIS stops adding new items to the cache after a short warm-up period. Items turn red, but new files do not seem to be cached. According to perfmon, the number of items in the cache drops to a few. It would be very helpful so that we can see exactly which files are in the cache at any given time.

+5
source share

All Articles