Skip to content

Commit e46eef6

Browse files
authored
NGX-738: cache 301 responses (#32)
1 parent 0470cc1 commit e46eef6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/etc/nginx/proxy.conf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ proxy_cache_path /var/nginx/cache/{{ nginx_cache_name }}
1616
inactive={{ nginx_cache_inactive }};
1717
proxy_cache_use_stale updating error timeout http_502 http_503 http_504;
1818
proxy_cache_valid 200 {{ nginx_cache_time_default }}s;
19+
proxy_cache_valid 301 {{ nginx_cache_time_default }}s;
1920
proxy_cache_valid 404 {{ nginx_cache_time_404 }}s;
2021
proxy_cache_valid 500 0;
2122
proxy_store_access user:rw group:rw all:r;

0 commit comments

Comments
 (0)