From 60a9d9fd0810e6554e69ae4973cf6351657b2363 Mon Sep 17 00:00:00 2001 From: Itamar Shefi Date: Tue, 5 Mar 2024 14:15:08 +0200 Subject: [PATCH] Change css & js version in order to clear cache --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index f99bd05..53e2849 100644 --- a/app.py +++ b/app.py @@ -32,12 +32,12 @@ js_hasher = hashlib.sha3_256() with open(STATIC_FOLDER + "/semantle.js", "rb") as f: js_hasher.update(f.read()) -JS_VERSION = js_hasher.hexdigest()[:8] +JS_VERSION = js_hasher.hexdigest()[:6] css_hasher = hashlib.sha3_256() with open(STATIC_FOLDER + "/styles.css", "rb") as f: css_hasher.update(f.read()) -CSS_VERSION = css_hasher.hexdigest()[:8] +CSS_VERSION = css_hasher.hexdigest()[:6] app = FastAPI() app.state.mongo = get_mongo()