Skip to content

Commit

Permalink
Change css & js version in order to clear cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ishefi committed Mar 5, 2024
1 parent 4cd45c6 commit 60a9d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 60a9d9f

Please sign in to comment.