Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>After a bit of research we came up with the following list of headers that seemed to cover most browsers:</p> <ul> <li><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21" rel="noreferrer">Expires</a>: Mon, 26 Jul 1997 05:00:00 GMT</li> <li><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9" rel="noreferrer">Cache-Control</a>: <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1" rel="noreferrer">no-cache</a>, private, <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.4" rel="noreferrer">must-revalidate</a>, max-stale=0, post-check=0, pre-check=0 no-store</li> <li><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.32" rel="noreferrer">Pragma</a>: no-cache</li> </ul> <p>In ASP.NET we added these using the following snippet:</p> <pre><code>Response.ClearHeaders(); Response.AppendHeader("Cache-Control", "no-cache"); //HTTP 1.1 Response.AppendHeader("Cache-Control", "private"); // HTTP 1.1 Response.AppendHeader("Cache-Control", "no-store"); // HTTP 1.1 Response.AppendHeader("Cache-Control", "must-revalidate"); // HTTP 1.1 Response.AppendHeader("Cache-Control", "max-stale=0"); // HTTP 1.1 Response.AppendHeader("Cache-Control", "post-check=0"); // HTTP 1.1 Response.AppendHeader("Cache-Control", "pre-check=0"); // HTTP 1.1 Response.AppendHeader("Pragma", "no-cache"); // HTTP 1.0 Response.AppendHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT"); // HTTP 1.0 </code></pre> <p>Found from: <a href="http://forums.asp.net/t/1013531.aspx" rel="noreferrer">http://forums.asp.net/t/1013531.aspx</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload