Skip to content

Commit

Permalink
Merge pull request #334 from arXiv/ARXIVCE-984-add-expires-for-gcp
Browse files Browse the repository at this point in the history
revert search caching attempts
  • Loading branch information
kyokukou authored Jul 14, 2024
2 parents 34eb442 + 575e996 commit a67953f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions search/controllers/advanced/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 1 addition & 3 deletions search/controllers/simple/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a67953f

Please sign in to comment.