2012-10-02 15 views
13

html5 doğrulayıcıyı sitemde w3c doğrulayıcıdan geçirdiğimde sorun yaşıyorum. Hatalar:Kötülüğündeki hatalı değerler

Bad value Content-Script-Type for attribute http-equiv on element meta 
<meta http-equiv="Content-Script-Type" content="text/javascript" > 

Bad value expires for attribute http-equiv on element meta 
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" > 

Bad value pragma for attribute http-equiv on element meta 
<meta http-equiv="pragma" content="no-cache" > 

Bad value Cache-Control for attribute http-equiv on element meta. 
<meta http-equiv="Cache-Control" content="no-cache" > 

html5 doğrulayıcısını geçmek için meta etiketlere doğru değerler nedir?

+1

olası yinelenen (http://stackoverflow.com/questions/9655526/html5-meta-validation) – Barett

cevap

8

HTML5 için, başlıkta bir önbellek bildirim dosyası kullanın. Bu nasıl kullanılacağına ilişkin bir örnek: Ayrıca http://www.w3.org/TR/html5/browsers.html#manifests

, bununla hiçbir önbellek zorlamak:

<meta http-equiv="expires" content="0"> 

Bu önbellek bildirim dosyası nasıl kullanılacağı hakkında iyi bir öğretici: http://www.html5rocks.com/en/tutorials/appcache/beginner/

+1

Yardımlarınız için teşekkür ederim. Ama yine de bir sonraki meta etiketi ile aynı sorunu yaşıyorum: '' ile mesaj hatası: ** Bad value Content-Script- Http://en.microsoft.com/windows/library/default.aspx?page=tr&answer=1&page=tr&utm=tr&id=5&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&= Şimdiden teşekkürler –

+1

@ JoséCarlos - Başlıktaki javascript için '' seçeneğini kullanabilirsiniz. Daha fazla bilgi için, bu bağlantıya bakın: http://stackoverflow.com/questions/6320084/why-is-meta-http-equiv-content-script-type-mostly-unused – ews2001

+5

, geçerliliğini kaybeder. – Barett

5

Kabul edilen cevap yanlış! This iyi bir cevaptır.

Alohci alıntı için: [HTML5 meta Doğrulama] arasında

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.