![]() |
1
4
您应该始终让代理到您的杂种的web服务器处理静态内容的提供和压缩。对静态内容的请求永远不应该传递给杂种。 例如,使用nginx,只需在配置文件中添加gzip指令即可。 http://topfunky.net/svn/shovel/nginx/conf/nginx.conf # output compression saves bandwidth gzip on; gzip_http_version 1.0; gzip_comp_level 2; gzip_proxied any; gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; |
![]() |
2
2
已经提出并回答了两个类似的问题。希望那里的内容也会有所帮助。 How can I pre-compress files with mod_deflate in Apache 2.x? |
![]() |
Sweepy Dodo · JSON lite的格式化 7 月前 |
![]() |
giantjenga · 优化整数向量到二进制向量的转换 8 月前 |
![]() |
Zegarek · Postgresql递归查询未提供预期结果 9 月前 |
![]() |
Joe · 为什么这两个查询之间的性能存在如此大的差异? 1 年前 |
![]() |
tic-toc-choc · 在`dplyr中高效使用列表进行过滤` 1 年前 |