nginx中gzip和cache配置
gzip
1 | gzip on; #开启 gzip |
cache
1 | proxy_cache_path /dev/shm/proxy_cache_dir levels=1:2 keys_zone=mycache:200m inactive=1d max_size=1g; |
cache example
1 | http { |
nginx中gzip和cache配置
1 | gzip on; #开启 gzip |
1 | proxy_cache_path /dev/shm/proxy_cache_dir levels=1:2 keys_zone=mycache:200m inactive=1d max_size=1g; |
1 | http { |
nginx中gzip和cache配置