我有一些静态内容,jpg,png,在一个特定的文件夹中。
我想将HTTP头设置为30天后过期。
使用IIS7.5 >> http响应标头>>设置公共标头>>过期web内容
我添加了我的值,但是我仍然获得静态内容的HTTP头作为(expiration not specified)。
我已经尝试在IIS中刷新我的站点,但没有解决我的问题。
有什么想法吗?
发布于 2012-09-14 21:48:56
Give this a try with application pool -> ManagedpipelineMode : **Classic**
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" cacheControlCustom="public"/>
</staticContent>
</system.webServer>您还可以检查如何在ui http://www.iis.net/configreference/system.webserver/staticcontent/clientcache中对其进行配置
https://stackoverflow.com/questions/8299109
复制相似问题