mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Fix widget-css etag version limit (#5733)
* Fix widget-css etag version limit * make etag none if version bigger than version_max
This commit is contained in:
committed by
GitHub
parent
a7e85a157d
commit
4eb2c50d95
@@ -108,6 +108,8 @@ def indent(s):
|
||||
|
||||
|
||||
def widget_css_etag(request, version, **kwargs):
|
||||
if version > version_max:
|
||||
return None
|
||||
if version < version_min:
|
||||
version = version_min
|
||||
# This makes sure a new version of the theme is loaded whenever settings or the source files have changed
|
||||
|
||||
Reference in New Issue
Block a user