Questions tagged «mod-deflate»


2
为什么Apache不会gzip具有参数的css或js文件?
启用了mod_deflate的apache无法压缩某些CSS和JS文件。该文件在YSlow中看起来像“ [domain.name] /aggregator.css?...”或“ [domain.name] /misc/jquery.js?...”。其他CSS和JS不含“?” 被压缩。请解释一下如何使apache也压缩此文件。 我在.htaccess文件上添加了以下行 <IfModule mod_deflate.c> <FilesMatch "\.(css|js|x?html?|php)$"> SetOutputFilter DEFLATE </FilesMatch> </IfModule> 谢谢
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.