JQuery UI Tabs caching

前端 未结 4 1269
不思量自难忘°
不思量自难忘° 2020-12-09 06:18

I am working in an ASP .net MVC Application. I have a JQuery UI tab whose Javascript to enable caching is as follows.

function LoadStudentDetailTabs() {
            


        
4条回答
  •  伪装坚强ぢ
    2020-12-09 06:53

    None of the above worked for me in IE. I had to put

    [OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
    

    At the page level, rather than on the Ajax method (which worked for Chrome)

    So:

    [OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
    public ViewResult MyPage()
    {
    }
    

    As well as:

    [OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
    public JsonResult MethodCalledByAjax()
    {
    }
    

提交回复
热议问题