Force Cache Refresh When Editing and Redisplaying Content

前端 未结 1 898
我在风中等你
我在风中等你 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

    
    
    

    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)
提交回复
热议问题