From 575e99694f68aff8fc91d1165b9e737ad90cab1f Mon Sep 17 00:00:00 2001 From: kyokukou Date: Fri, 12 Jul 2024 09:48:42 -0700 Subject: [PATCH] revert search cacheing attempts --- search/controllers/advanced/__init__.py | 4 +--- search/controllers/simple/__init__.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/search/controllers/advanced/__init__.py b/search/controllers/advanced/__init__.py index 38321a9d..1026ea68 100644 --- a/search/controllers/advanced/__init__.py +++ b/search/controllers/advanced/__init__.py @@ -171,9 +171,7 @@ def search(request_params: MultiDict) -> Response: # example, we can generate new form-friendly requests to update sort # order and page size by embedding the form (hidden). response_data["form"] = form - headers={} - headers["Cache-Control"]="max-age=600" - return response_data, HTTPStatus.OK, headers + return response_data, HTTPStatus.OK, {} def _query_from_form(form: forms.AdvancedSearchForm) -> AdvancedQuery: diff --git a/search/controllers/simple/__init__.py b/search/controllers/simple/__init__.py index aee9ab58..aa658cff 100644 --- a/search/controllers/simple/__init__.py +++ b/search/controllers/simple/__init__.py @@ -185,9 +185,7 @@ def search( q = None response_data["query"] = q response_data["form"] = form - headers={} - headers["Cache-Control"]="max-age=600" - return response_data, HTTPStatus.OK, headers + return response_data, HTTPStatus.OK, {} def retrieve_document(document_id: str) -> Response: