mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-26 01:01:00 +00:00
Stop no-store headers getting through for the proxy
This commit is contained in:
parent
201b410383
commit
218aabc597
2 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,8 @@ http {
|
||||||
proxy_cache_valid 301 307 12h;
|
proxy_cache_valid 301 307 12h;
|
||||||
proxy_cache_valid 500 502 503 504 0s;
|
proxy_cache_valid 500 502 503 504 0s;
|
||||||
proxy_cache_valid any 72h;
|
proxy_cache_valid any 72h;
|
||||||
|
proxy_hide_header Cache-Control;
|
||||||
|
add_header Cache-Control "public, max-age=3600";
|
||||||
add_header X-Cache $upstream_cache_status;
|
add_header X-Cache $upstream_cache_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ class BaseProxyView(View):
|
||||||
headers={
|
headers={
|
||||||
"X-Accel-Redirect": "/__takahe_accel__/",
|
"X-Accel-Redirect": "/__takahe_accel__/",
|
||||||
"X-Takahe-RealUri": remote_url,
|
"X-Takahe-RealUri": remote_url,
|
||||||
|
"Cache-Control": "public, max-age=3600",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue