用的VaryByParam的OutputCache错误= QUOT;无"与MVC RC刷新 [英] OutputCache Bug with VaryByParam="None" with MVC RC refresh

查看:99
本文介绍了用的VaryByParam的OutputCache错误= QUOT;无"与MVC RC刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

碰到到<一个href=\"http://stackoverflow.com/questions/323458/asp-net-mvc-outputcache-doesnt-work-for-root-uri/325093\">this缺陷与ASP.NET RC,而使用刷新的VaryByParam =而不是的VaryByParam =无

Came across to this defect with ASP.NET RC refresh while using VaryByParam="" instead of VaryByParam="None".

缓存工作,但网页。 http://www.yoursite.com 并的 http://www.yoursite.com/home/index 将被缓存单独看起来。

Caching WORKS, but page http://www.yoursite.com and http://www.yoursite.com/home/index will be cached separately it seems.

什么是的VaryByParam =的VaryByParam =无

编辑:我的意思是的VaryByParam =不是的VaryByParam =*导致错误仍然存​​在的VaryByParam =*

edit : I mean VaryByParam="" not VaryByParam="*" cause the bug still exists with VaryByParam="*"

推荐答案

的VaryByParam =*将为每个传递不同的参数一个新的高速缓存。

的VaryByParam =无,将创建一个且仅一个高速缓冲存储器,而不论参数

VaryByParam="*" will create a new cache for every different parameter passed.
VaryByParam="None" will create one and only one cache, regardless of parameters.

这篇关于用的VaryByParam的OutputCache错误= QUOT;无&QUOT;与MVC RC刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆