html5 - Bad value cache-control for attribute http-equiv on element meta -
i dont want html5 pages cached , using these tags under html file
<!doctype html> <head> <meta charset="utf-8"> <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="tue, 01 jan 1980 1:00:00 gmt" /> <meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="x-ua-compatible" content="ie=edge"> <script src="js/jquery-1.10.2.min.js"></script> </head>
when validated these http://validator.w3.org/check ,
its saying
bad value cache-control attribute http-equiv on element meta.
<meta http-equiv="cache-control" content="max-age=0" />
bad value cache-control attribute http-equiv on element meta.
<meta http-equiv="cache-control" content="no-cache" />
bad value expires attribute http-equiv on element meta.
<meta http-equiv="expires" content="0" />
bad value expires attribute http-equiv on element meta.
<meta http-equiv="expires" content="tue, 01 jan 1980 1:00:00 gmt" />
bad value pragma attribute http-equiv on element meta.
<meta http-equiv="pragma" content="no-cache" />
could please let me know how resolve ??
html5 has small set of values available http-equiv
attribute meta
property. it's not can take possible http header , use way. although browser may , support many non-standard values, it's non spec-conformant.
information here: http://www.w3.org/tr/html5/document-metadata.html#standard-metadata-names in p. 4.2.5.3 pragma directives.
what can - depending on used server technology - add headers http response. how - depends on whether page dynamically generated or static file. in second case depends on server software capabilities.
Comments
Post a Comment