问题
Came across to this defect with ASP.NET RC refresh while using VaryByParam=""
instead of VaryByParam="None"
.
Caching WORKS, but page http://www.yoursite.com and http://www.yoursite.com/home/index will be cached separately it seems.
What is the difference between VaryByParam=""
and VaryByParam="None"
?
edit : I mean VaryByParam=""
not VaryByParam="*" cause the bug still exists with VaryByParam="*"
回答1:
VaryByParam="*" will create a new cache for every different parameter passed.
VaryByParam="None" will create one and only one cache, regardless of parameters.
回答2:
Route elements are not considered parameters for OutputCache.
What is VaryByParam in asp.net?
来源:https://stackoverflow.com/questions/606915/outputcache-bug-with-varybyparam-none-with-mvc-rc-refresh