chore(template): tie the version to our tag counter #20
No reviewers
Labels
No labels
blocked/freeze
follow-up
freeze/ok
help-wanted
kind
bug
kind
change
kind
debt
kind
diagnosis
kind
docs
kind
feature
kind
question
kind
watch
no-test-needed
resolution
duplicate
resolution
invalid
resolution
wontfix
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
fabrice.kirchner/jtl-shop-novachild!20
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/template-version-cache-buster"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
NOVA appends
<Version>to every CSS and JS file as?v=<version>, andthe shop serves those files with
Cache-Control: max-age=31536000. Tagv5-8-0-4changedjs/custom.js, butcustom.js?v=5.8.0stayed thesame, so a browser holding the old file would not fetch the new one for
up to a year and the mail delay notice of #19 would not reach returning
customers. Measured on 21.11.2026 against the production shop.
The first three digits follow the NOVAChild version of JTL, the fourth
is the counter of our own tags, so
v5-8-0-5carries5.8.0.5.Effects: the next init run reactivates the template and writes the new
version into
ttemplate. Every CSS and JS URL of both production shopschanges once, so those files are fetched again; the pages themselves are
unaffected. No change for anyone who switches the notice off later.
Tests: verified in cdp-testshop with this template.xml in place.
reactivate_template.php checkread version 5.8.0.5 and found theparent,
applywroteNOVAChild | standard | 5.8.0.5intottemplateand left the template active. The registration page renders with HTTP
200, 281 KB and the usual title, now with
js/custom.js?v=5.8.0.5andmy-nova.css?v=5.8.0.5, and the notice element of #19 is still in place,so the settings in ttemplateeinstellungen survived the reactivation.
Side note: the pre-commit hook no-infra-leaks reads the four-digit
version as an IPv4 address. The line carries an infra-leak-ok marker;
the hook could skip version numbers in backticks instead.
Nach dem Merge: Tag
v5-8-0-5undTEMPLATE_REFinfabrice.kirchner/k3s-prod nachziehen, dann je Shop den Hinweis
einschalten.