How to use Cache-Control in HTML
To use cache-control in HTML, you use the meta tag, e.g.
- <meta http-equiv="Cache-control" content="public">
The value in the content field is defined as one of the four values below.
Some information on the Cache-Control header is as follows
HTTP 1.1. Allowed values = PUBLIC | PRIVATE | NO-CACHE | NO-STORE.
- Public - may be cached in public shared caches.
- Private - may only be cached in private cache.
- No-Cache - may not be cached.
- No-Store - may be cached but not archived.