From 6b4f9c7a32eac9eb907676eb2693a536e403f503 Mon Sep 17 00:00:00 2001 From: Gwendolyn Date: Tue, 16 Jul 2024 12:32:24 +0200 Subject: [PATCH] fix formatting --- wagtailcache/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtailcache/cache.py b/wagtailcache/cache.py index 0c5dae7..1b97c02 100644 --- a/wagtailcache/cache.py +++ b/wagtailcache/cache.py @@ -246,7 +246,7 @@ def process_request(self, request: WSGIRequest) -> Optional[HttpResponse]: response: HttpResponse if "If-None-Match" in request.headers and "Etag" in response.headers and \ response.headers["Etag"] in parse_etags( - request.headers["If-None-Match"]): + request.headers["If-None-Match"]): not_modified = HttpResponse(status=304) not_modified.headers["Etag"] = response.headers["Etag"] # TODO: Cache-Control and Expires?