Disable browser cache for entire ASP.NET website

前端 未结 8 1674
既然无缘
既然无缘 2020-11-22 03:20

I am looking for a method to disable the browser cache for an entire ASP.NET MVC Website

I found the following method:

Response.Cach         


        
8条回答
  •  面向向阳花
    2020-11-22 04:12

    I implemented all the previous answers and still had one view that did not work correctly.

    It turned out the name of the view I was having the problem with was named 'Recent'. Apparently this confused the Internet Explorer browser.

    After I changed the view name (in the controller) to a different name (I chose to 'Recent5'), the solutions above started to work.

提交回复
热议问题