These META elements ensure that the page is not cached.
The META element is placed inside the HEAD element.
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
| Attribute | Value | Explanation |
|---|---|---|
| http-equiv=" " | Pragma | for the browser in accordance with HTTP/1.0 |
| Cache-Control | for the browser in accordance with HTTP/1.1 | |
| content=" " | no-cache | the page is not cached |
Also see "expiration date of the document".
<html> <head> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <title>TAG index</title> </head> <body> </body> </html>
Example of having added expiration date
<html> <head> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Expires" content="-1"> <title>TAG index</title> </head> <body> </body> </html>