fix: oops nginx was caching for only one hour

cache_valid "overrides" inactive?? its complicated, see
https://serverfault.com/questions/583570/understanding-the-nginx-proxy-cache-path-directive/641572#641572
This commit is contained in:
əlemi 2024-07-21 17:15:43 +02:00
parent 4b9f9ba0b4
commit 22e2fad343
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -53,7 +53,7 @@ server {
proxy_buffering on;
proxy_cache upub_cache;
proxy_cache_key $host$uri$is_args$args$slice_range;
proxy_cache_valid 200 206 301 304 1h;
proxy_cache_valid 200 206 301 304 168h;
proxy_cache_lock on;
proxy_pass http://127.0.0.1/;
}