optimized proxy_cache_valid any

This commit is contained in:
Kevin Veen-Birkenbach 2021-01-02 13:49:30 +01:00
parent 7ea7fa292f
commit 1a5235be9b

View File

@ -19,7 +19,8 @@ location /
# general caching # general caching
proxy_cache cache; proxy_cache cache;
proxy_cache_key $host$uri$is_args$args; proxy_cache_key $host$uri$is_args$args;
proxy_cache_valid any 5m; proxy_cache_valid any 1m;
proxy_cache_valid 200 301 302 5m;
expires 5m; expires 5m;
# cache media files # cache media files