1

I have this error while validating my web page(html 5) "Bad value Cache-Control for attribute http-equiv on element meta.".

This is my HTML code on page source:

<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test</title>
<meta name="description" content="Lorem ipsum dolor site amet"/>
<meta name="keywords" content="Lorem ipsum dolor site amet"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta name="robots" content="index, follow" />

How to fix this?

lifeline
  • 507
  • 2
  • 16
  • 30

1 Answers1

2

The http-equiv value Cache-Control is not allowed in HTML5.

You may only use the values listed in the HTML5 spec and those registered in the WHATWG wiki page "PragmaExtensions".

If you need it and think it’s useful, you could try to register it.

unor
  • 92,415
  • 26
  • 211
  • 360
  • 1
    [This](http://stackoverflow.com/a/9657962/352260) is a very good answer for this question! – CoR Jul 14 '15 at 10:41