Force Cache Refresh When Editing and Redisplaying Content

前端 未结 1 897
我在风中等你
我在风中等你 2021-01-14 15:18

I am using asp.net mvc and have a view that displays an item and a view that allows editing an item. When the user submits an edited item, it redirects them to the view for

相关标签:
1条回答
  • 2021-01-14 15:44

    There is a cache-control meta tag you can set. Put this in your head section

    <META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    

    http://www.chami.com/tips/internet/113096I.html

    or the .Net way

    <%@ OutputCache Location="None" VaryByParam="None" %>
    

    http://www.dailycoding.com/Posts/how_not_to_cache_a_page_output_in_aspnet.aspx

    0 讨论(0)
提交回复
热议问题