Resolve "Config file is cached in brower"
Description
Motivation
Since Vite does not support EJS(Embedded JavaScript) syntax by default, expressions like Date.now()
in .html file are not interpreted, which prevents effective cache busting.
Fixes:
- Replace
Date.now()
by the__BUILD_TIME__
defined invite.config.ts
- Use
transformIndexHtml
plugin to interpret__BUILD_TIME__
Changes:
Deployed config file name changed from config.js?v=<%=Date.now()%> to config.js?v=2025-07-17T11:54:58.075Z
Tests included/Docs Updated?
-
Included for each change/fix? -
Passing? (Merge will not be approved unless this is checked) -
Docs updated? -
New packages used/requires npm install? -
Toggle added for new features?
Closes #117 (closed)