By default, IE opens a webpage and caches it locally to reduce the number of server accesses and improve performance. But sometimes this also brings us drawbacks, such as modifying the page of information, opening the page again after submitting the repair and modification, because the URL has not changed, so IE will read the local cache, the page displays the original information, which is easy to appear in the pop-up dialog box or window for modification.
In ASP. NET, you can add the following content to the page:
Copy codeThe Code is as follows:
<% @ OutputCache Location = "None" VaryByParam = "None" %>
Or
Add the HEAD part of HTML
Copy codeThe Code is as follows:
<! -- Disable the cache part to start -->
<Meta http-equiv = "Expires" content = "0"/>
<Meta http-equiv = "Progma" content = "no-cache"/>
<Meta http-equiv = "cache-control" content = "no-cache, must-revalidate"/>
<! -- Disable the cache part to end -->