From 2dcc7319ea05ecef1b32efbee1349718cf2aeaff Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 24 Aug 2019 11:18:01 +0200 Subject: [PATCH] Add Cache-Control back --- core/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/shared.py b/core/shared.py index f21676f..e1ab120 100644 --- a/core/shared.py +++ b/core/shared.py @@ -53,7 +53,7 @@ def build_resp(resp): if "gzip" in accept_encoding.lower(): return ( gzip.compress(resp.encode(), compresslevel=6), - {"Vary": "Accept-Encoding", "Content-Encoding": "gzip"}, + {**headers, "Vary": "Accept-Encoding", "Content-Encoding": "gzip"}, ) return resp, headers