mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-10 21:24:15 +00:00
Fix Cache Buster
This commit is contained in:
parent
4ea80e9810
commit
790080f2a0
@ -76,11 +76,11 @@ def init_cache_busting(app):
|
|||||||
if file_hash:
|
if file_hash:
|
||||||
values["q"] = file_hash
|
values["q"] = file_hash
|
||||||
|
|
||||||
def debusting_static_view(file_name):
|
def debusting_static_view(filename):
|
||||||
"""
|
"""
|
||||||
Serve a request for a static file having a busted name.
|
Serve a request for a static file having a busted name.
|
||||||
"""
|
"""
|
||||||
return original_static_view(filename=unbust_filename(file_name))
|
return original_static_view(filename=unbust_filename(filename))
|
||||||
|
|
||||||
# Replace the default static file view with our debusting view.
|
# Replace the default static file view with our debusting view.
|
||||||
original_static_view = app.view_functions["static"]
|
original_static_view = app.view_functions["static"]
|
||||||
|
Loading…
Reference in New Issue
Block a user