Skip to content

Commit

Permalink
max-age = hour
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Kaplan authored and Steven Kaplan committed Dec 20, 2021
1 parent c557422 commit ea8e83e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sefaria/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ def linker_js(request, linker_version=None):
+ model.library.citing_title_list("he"), ensure_ascii=False)
}

return render(request, linker_link, attrs, content_type = "text/javascript; charset=utf-8")
response = render(request, linker_link, attrs, content_type = "text/javascript; charset=utf-8")
response["Cache-Control"] = 'max-age=3600'
return response


def linker_data_api(request, titles):
Expand Down

0 comments on commit ea8e83e

Please sign in to comment.