fix(static-assets): also cache-bust raw /static/ refs (fonts CSS, store JS)
All checks were successful
All checks were successful
The initial codemod only converted url_for('*_static', path='*.js'|'*.css')
patterns and missed 19 raw /static/... references — most importantly the
shared/fonts/inter.css link in all four base.html files, plus a handful
of <script src="/static/modules/..."> tags in marketplace/billing/orders
templates and the storefront login/register/forgot/reset pages.
Result: deploys now flip ?v=<sha> on every JS/CSS asset that reaches the
browser, not just the ones loaded via url_for().
FE-024 rule extended to flag src="/static/...*.(js|css)" patterns too.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
{% block alpine_data %}storeInvoices(){% endblock %}
|
||||
|
||||
{% block extra_scripts %}
|
||||
<script defer src="/static/modules/billing/store/js/invoices.js"></script>
|
||||
<script defer src="{{ static_v(request, 'billing_static', path='store/js/invoices.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
Reference in New Issue
Block a user