我有一个单页应用程序(angular js),通过IIS提供服务.如何防止缓存HTML文件?解决方案需要通过更改任一索引中的内容来实现.html或网络.配置,因为无法通过管理控制台访问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是7.5版,带有.NET框架4