Я использую Google Page Speed Insights и рекомендовал мои CSS страницы, чтобы быть compressed.So Я добавил этот HTAccessСжатие CSS не работает в Firefox и Iphone сафари
<filesMatch "\.(js|css)$">
Header set Content-Encoding x-deflate
# Header set Content-Encoding compress
# Header set Content-Encoding x-gzip
</filesMatch>
Так было сжатие CSS и работа штраф в хроме, но в Firefox Когда я получить доступ к http://fasttorrent.me/cdn/bootstrap.css Css ссылке это было пусто, и я получаю ошибку ниже
The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature.
Поэтому я добавил ниже код
<filesMatch "\.css$">
FileETag None
<ifModule mod_headers.c>
Header set Content-type "text/css"
</ifModule>
</filesMatch>
Но все же я получаю такую же ошибку в firefox и iphone safari.
EDIT: Я пытался установить кодировку как below..still ошибки
<filesMatch "\.(html|css|js)$">
AddDefaultCharset UTF-8
DefaultLanguage en-US
Header set Content-Encoding x-deflate
</filesMatch>
Ошибка связана с набором символов, а не с типом MIME. –
как определить набор символов – Vishnu