YSlow: no character set specified in their HTTP headers

.htaccess

Solution

Try adding these 2 lines in your .htaccess:

AddDefaultCharset UTF-8
AddCharset UTF-8 .htm .html .css .js .woff

Problem

``` The following resources have no character set specified in their HTTP headers. Specifying a character set in HTTP headers can speed up browser rendering. http://www.mysite.com/assets/fonts/Roboto/Roboto300.woff http://www.mysite.com/assets/fonts/Roboto/Roboto700.woff http://www.mysite.com/assets/fonts/font-awesome/fontawesome-webfont.woff ``` How can I fix it via .htaccess?

Original source