NoCache Method
Syntax
Context.Response.NoCache as V ()
Description
Configures the response so browser will not cache it.
Discussion
Context.Response.NoCache() configures the current response so that the browser receiving the response will not cache it. It does this by setting the following three HTTP headers:
- Header Name
- Header Value
- Cache-Control
"no-store, no-cache, max-age=0, must-revalidate" (for HTTP/1.1)
- Expires
"Mon, 09 Jun 2003 09:25:00 GMT" (for HTTP/1.0)
- Pragma
"no-cache"