【发布时间】:2014-12-23 09:58:37
【问题描述】:
我有一个通过 IIS 提供服务的单页应用程序 (angular-js)。如何防止缓存 HTML 文件?该解决方案需要通过更改 index.html 或 web.config 中的内容来实现,因为无法通过管理控制台访问 IIS。
我目前正在研究的一些选项是:
- web.config 缓存配置文件 - http://www.iis.net/configreference/system.webserver/caching
- web.config 客户端缓存 - http://www.iis.net/configreference/system.webserver/staticcontent/clientcache
- 元标签 - Using <meta> tags to turn off caching in all browsers?
IIS 是 .NET 框架 4 的 7.5 版
【问题讨论】:
标签: asp.net angularjs caching iis single-page-application