ETags, IIS7, Kernel Cache Policy (enableKernelCache)

跟風遠走 提交于 2019-12-05 08:47:08

The handling of ETags and the associated If-None-Match / If-Modified-Since is somewhat browser dependent. You might try a few different browsers and see what happens -- in general, if you don't set an explicit expiration time, I would expect to see the 304's, as you said.

For kernel caching, it is enabled for static files by default. To help see what's happening, I've found it helpful to run the following command:

netsh http show cachestate

That will show information about the files that are currently in the cache.

Keep in mind that files normally have to be referenced a couple of times within a certain time window before the kernel will cache them.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!