我目前正在尝试通过Web.configconfiguration一个ASP.net Web应用程序,以在特定的文件夹中托pipe一个GWT WebApp。 我已经设法configurationmimeMap的.manifest文件扩展名在system.Webserver / staticContent部分,但是,我坚持与clientCache。 我想添加一个caching规则,以便使用“.nocache”的文件。 与以下标题一起提供:
"Expires", "Sat, 21 Jan 2012 12:12:02 GMT" (today -1); "Pragma", "no-cache" "Cache-control", "no-cache, no-store, must-revalidate"
任何人都知道如何在IIS 7+中做到这一点?
最终创build了一个自定义的httphandler来处理对path.nocache的所有请求。 使用类似于这里描述的解决scheme:
https://stackoverflow.com/questions/5063338/prevent-scripts-from-being-cached-programmatically