Skip to content

Commit

Permalink
Added: Cache control header to IA CDN endpoint (#8944)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantuM410 authored Mar 27, 2024
1 parent a2f111c commit 9eb1483
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openlibrary/plugins/openlibrary/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ class ia_js_cdn(delegate.page):

def GET(self, filename):
web.header('Content-Type', 'text/javascript')
web.header("Cache-Control", "max-age=%d" % (24 * 3600))
return web.ok(fetch_ia_js(filename))


Expand Down

0 comments on commit 9eb1483

Please sign in to comment.