ASP.NET-缓存outputcache参数
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ASP.NET-缓存outputcache参数相关的知识,希望对你有一定的参考价值。
给Index加一个60秒的缓存,应该缓存在IIS服务器里面(我猜的)


只对变化的参数page不进行缓存,其他参数返回相同的内容

根据接受的语言的不同不进行缓存

设定缓存的位置


依赖于数据库变化的缓存

不限定缓存的时长

在webconfig中加设置,让所有页面进行缓存

[OutputCache]有很多参数,还需要好好看看
!--more-->
以上是关于ASP.NET-缓存outputcache参数的主要内容,如果未能解决你的问题,请参考以下文章
ASP.NET MVC 阻止当前请求的视图页面缓存OutputCache
我的 asp.net mvc Web 应用程序中的 OutputCache 设置。防止缓存的多种语法
详解Asp.Net Core 2.1+的视图缓存(响应缓存)