Files
LEMPer/nginx/proxy_cache
Edi Septriyanto 891fcac73e initial commit
2017-08-30 22:15:00 +07:00

13 lines
523 B
Plaintext

## Include this file if you want to use Nginx as transparent proxy cache
# Designed to be included in /etc/nginx/nginx.conf http{} block
proxy_cache_path /var/cache/nginx/proxy_temp levels=1:2 keys_zone=WORDPRESS:100m max_size=1g inactive=60m use_temp_path=off;
# use stale cache on backend fault
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
# Ignore header
proxy_ignore_headers Expires Cache-Control;
# Header status
add_header X-Cache-Status $upstream_cache_status;