gzip压缩
来源:互联网 发布:螃蟹 知乎 编辑:程序博客网 时间:2024/05/16 14:35
http://tool.chinaz.com/
httpd.conf中打开deflate_Module和headers_Module模块,具体做法为将 如下两句前面的#去掉:
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
在httpd.conf文件底部加入如下代码配置需要压缩的文件:
<IfModule deflate_module>
SetOutputFilter DEFLATE
# Don’t compress images and other
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .(?:pdf|doc)$ no-gzip dont-vary
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
阅读全文
0 0
- gzip压缩
- GZip压缩
- GZIP压缩
- Gzip压缩
- GZIP压缩
- Gzip压缩
- GZIP压缩
- GZIP --压缩
- Gzip压缩
- GZIP压缩
- Gzip压缩
- gzip压缩
- gzip压缩
- gzip压缩和解压缩
- 压缩和解压缩GZIP文件
- ios-gzip压缩和解压缩
- ios-gzip压缩和解压缩
- iOS-gzip压缩和解压缩
- Uncaught SyntaxError: Unexpected token o
- String.trim函数算法实现
- Genymotion运行出错,包括虚拟机VBox的兼容问题
- js 中{},[]中括号,大括号使用详解
- 传入类名,通过反射,将泛型实例化
- gzip压缩
- Unity中对象池的使用
- Machine Learning学习笔记-概述
- javaweb前端后端通信乱码问题剖析
- FCC算法:六、找出多个数组中的最大数--Return Largest Numbers in Arrays
- python入门基础教程(一)
- git 配置
- 一知半解学CubeMX——TIM:定时中断实现LED闪烁
- eclipse 创建或导入的maven web项目常见问题汇总