0
Iam用來緩存我的asp.net mvc頁面asp.net mvc輸出緩存,尾隨「/」字符的問題
[OutputCache(VaryByParam = "something", Duration = 1800, Location = System.Web.UI.OutputCacheLocation.Server)]
public ActionResult MyPage()
{
}
問題緩存頁面沒有被選中時有些人添加了斜槓字符(「/」)
eg:
//cache entry 1
mySite/MyPage
//cache entry2
mySite/MyPage/