html5 meta tag cache-control no longer valid?

powtac picture powtac · Jul 12, 2011 · Viewed 46.2k times · Source

How do I define

<meta http-equiv="cache-control" content="no-cache" />

in HTML5? It is no longer valid according to the W3C Validator and the documentation.

Answer

wandarkaf picture wandarkaf · Dec 13, 2012

Putting caching instructions into meta tags is not a good idea, because although browsers may read them, proxies won't. For that reason, they are invalid and you should send caching instructions as real HTTP headers.