Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess YSlow:在其HTTP头中未指定字符集_.htaccess - Fatal编程技术网

.htaccess YSlow:在其HTTP头中未指定字符集

.htaccess YSlow:在其HTTP头中未指定字符集,.htaccess,.htaccess,如何通过.htaccess进行修复?尝试在.htaccess中添加以下两行: 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.wof

如何通过.htaccess进行修复?

尝试在.htaccess中添加以下两行:

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

我已输入AddDefaultCharset UTF-8,但仍然收到警告!
AddDefaultCharset UTF-8
AddCharset UTF-8 .htm .html .css .js .woff