Version HTML5 asset URLs
This commit is contained in:
@@ -140,7 +140,7 @@ _HTML5_ASSETS_DIR = Path(__file__).resolve().parent / "static" / "html5"
|
||||
class Html5StaticFiles(StaticFiles):
|
||||
def file_response(self, *args, **kwargs):
|
||||
response = super().file_response(*args, **kwargs)
|
||||
response.headers.setdefault("Cache-Control", "public, max-age=3600")
|
||||
response.headers.setdefault("Cache-Control", "public, max-age=86400")
|
||||
return response
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user