changeset 3f4b26173594 in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset&node=3f4b26173594
description:
Use CRITICAL_CSS_COOKIE global variable in cache_key_prefix_view
diffstat:
app.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 54f337808f3f -r 3f4b26173594 app.py
--- a/app.py Mon Nov 07 14:49:07 2022 +0100
+++ b/app.py Mon Nov 07 14:51:49 2022 +0100
@@ -153,7 +153,7 @@
def cache_key_prefix_view():
scheme = 'https' if request.is_secure else 'http'
- if not request.cookies.get('critical-css'):
+ if not request.cookies.get(CRITICAL_CSS_COOKIE):
return 'view/%s/%s/%s' % (
scheme, request.path, critical_css(timestamp=True))
else: