【发布时间】:2016-05-03 04:26:19
【问题描述】:
我使用 Asp.Net Core RC2 和 Kestrel 作为我的 Web 服务器。我需要确保使用无缓存标头响应请求(在这种情况下是所有请求),以便浏览器获得最新版本(不是 304)。
在 Startup 中有没有办法配置 Kestrel 或有办法将此步骤注入管道?
编辑:在我的情况下,no-store 可能是更好的选择:https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching“no-store 响应不允许被缓存,并且必须在每次请求时全部获取。”
【问题讨论】:
标签: asp.net asp.net-core kestrel-http-server