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:
parent
4b9f9ba0b4
commit
22e2fad343
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ server {
|
||||||
proxy_buffering on;
|
proxy_buffering on;
|
||||||
proxy_cache upub_cache;
|
proxy_cache upub_cache;
|
||||||
proxy_cache_key $host$uri$is_args$args$slice_range;
|
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_cache_lock on;
|
||||||
proxy_pass http://127.0.0.1/;
|
proxy_pass http://127.0.0.1/;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue