How do I use VaryByParam with multiple parameters?

删除回忆录丶 提交于 2019-11-29 21:09:39

You can use * for all parameters or a semi-colon separated list (VaryByParam = "customerId;languageId").

You can also use none if you didn't want it to cache different versions....

Here's a nice write up specifically for MVC.

pooja gautam

You can also use * to include all parameters

 [OutputCache(Duration =9234556,VaryByParam = "*")]
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!