From 9aeeed0be0c10394364ae6c51cd9504ede654643 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Sat, 26 Nov 2022 15:08:56 +0100 Subject: [PATCH] Update nginx Signed-off-by: Bensuperpc --- nginx-conf/flask_wsgi.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nginx-conf/flask_wsgi.conf b/nginx-conf/flask_wsgi.conf index 80c5730..1c2eb61 100644 --- a/nginx-conf/flask_wsgi.conf +++ b/nginx-conf/flask_wsgi.conf @@ -24,6 +24,9 @@ server { location @flask_app { include uwsgi_params; uwsgi_pass flask_server; + + uwsgi_buffering on; + uwsgi_buffers 8 16k; uwsgi_cache UWSGI; uwsgi_cache_valid 200 302 10m; @@ -31,9 +34,12 @@ server { uwsgi_cache_valid any 1m; uwsgi_cache_lock on; - #uwsgi_ignore_headers Vary; + #uwsgi_ignore_headers Cache-Control X-Accel-Expires Expires Vary Set-Cookie; #uwsgi_hide_header Vary; + uwsgi_ignore_headers Vary; + uwsgi_hide_header Vary; + add_header X-cache $upstream_cache_status; } }