当前位置:首页 > 服务器技术 > apache

apache怎么配置页面引入*gz文件

apache 如何配置 页面引入*.gz文件
apache 如何配置 页面引入*.gz文件

比如压缩一个jquery.gz文件

如何配置引入这个文件

请教!


------解决方案--------------------
使文件用gzip先压缩再传输吗?

开启mod_deflate
sudo a2enmod deflate
sudo /etc/init.d/apache2 restart

在httpd.conf中添加


#单独设置需要压缩的类型
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
AddOutputFilterByType DEFLATE application/x-javascript


http://blog.csdn.net/fdipzone/article/details/8916755
【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!