【发布时间】:2016-04-19 09:34:21
【问题描述】:
我知道 OutputCache 还没有为 ASP.NET Core 做好准备,但我已经阅读了有关 OutputCache 的信息,您可以像这样在 web.config 中配置它:
<configuration>
<location path="showStockPrice.asp">
<system.webserver>
<caching>
<profiles>
<add varybyquerystring="*"location="Any"
duration="00:00:01" policy="CacheForTimePeriod"
extension=".asp">
</profiles>
</caching>
</system.webserver>
</location>
</configuration>
我可以配置我的 web.config 以将 OutputCache Web.Config 用于 MVC 路由吗?
例如:
http://www.example.com/View/Index/123562
varyByParam 参数为 123562。
谢谢。
【问题讨论】:
标签: azure iis web-config asp.net-core outputcache