【发布时间】:2015-11-15 19:00:30
【问题描述】:
在我的网络配置中,我将所有内容缓存在某个文件夹中,就像这样
<location path="img">
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
</staticContent>
</system.webServer>
但是我的 css 和 js 不在某些文件夹中,我希望能够使用这样的通配符:
*.js,*.css,*.png,*.jpg
有什么方法可以通过 web.config 在 IIS 中执行此操作吗?
【问题讨论】:
标签: http caching iis web-config server