1
我在一个特定的文件夹中有一些静态内容,jpg,png。iis 7.5 http响应头不起作用
我很喜欢设置HTTP标头在30天后过期。
使用IIS 7.5 >> HTTP响应头>>设为共用首>>过期的网页内容
我加了我的价值,但我我仍然可以对静态内容(expiration not specified)
HTTP头。
我已经尝试在IIS中刷新我的网站,但它没有解决我的问题。
有什么想法?
我在一个特定的文件夹中有一些静态内容,jpg,png。iis 7.5 http响应头不起作用
我很喜欢设置HTTP标头在30天后过期。
使用IIS 7.5 >> HTTP响应头>>设为共用首>>过期的网页内容
我加了我的价值,但我我仍然可以对静态内容(expiration not specified)
HTTP头。
我已经尝试在IIS中刷新我的网站,但它没有解决我的问题。
有什么想法?
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
[到期日期缓存的静态内容(的
可能重复http://stackoverflow.com/questions/8311899/expiration-date-配置它对于缓存的静态内容) – RickNZ