Update app.py
This commit is contained in:
1 parent
af9cef7b5b
commit
ec67dacbbc
1 file changed
+2
-1
@@ -1570,7 +1570,8 @@ def apply_headers(response):
|
||||
|
||||
# --- statyczne pliki (nagłówki z .env) ---
|
||||
if request.path.startswith(("/static/", "/uploads/")):
|
||||
response.headers["Vary"] = "Accept-Encoding"
|
||||
response.headers.pop('Vary', None) # fix bug with backslash
|
||||
response.headers['Vary'] = 'Accept-Encoding'
|
||||
return response
|
||||
|
||||
# --- healthcheck ---
|
||||
|
||||
Reference in new issue
Block a user