up version

This commit is contained in:
Vladless
2026-04-27 15:42:38 +00:00
parent c0edb9fe9b
commit 9c9dafb459
6 changed files with 183 additions and 8 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ async def security_and_cache_middleware(request: Request, call_next):
path = request.url.path
if path.startswith("/api/web/uploads/") and request.method == "GET" and response.status_code == 200:
response.headers.setdefault("Cache-Control", "public, max-age=3600, stale-while-revalidate=86400")
response.headers.setdefault("Cache-Control", "public, max-age=31536000, immutable")
return response
if request.method == "GET" and response.status_code == 200 and "application/json" in content_type: