Auto Versioning for CSS & JavaScript Files ‑ PrestaShop Module
Instant cache‑busting for every theme asset. This lightweight module appends a time‑based version string to every CSS and JS file, forcing browsers to fetch the latest code after each edit—no manual cache clearing, no CCC performance penalty. 6 months of updates and technical support included.
Why your storefront still shows outdated styles
Browser caching is great for speed—until you tweak a stylesheet or script and nobody sees the change. Clearing Smarty cache or flushing CCC every time is a hassle that hurts conversion and Core Web Vitals.
Works perfectly with Cloudflare & other CDNs
The timestamp is appended directly in the file URL (style.css?ver=20250723145830). Because Cloudflare (and any CDN that respects query-string variations) treats each version as a fresh asset, visitors always fetch the new file without a manual “Purge Everything.” No extra API calls or worker rules needed—cache hit-rates stay high while updates propagate instantly.
How Auto Versioning fixes it
-
Auto‑generates a unique version query (
?ver=20250723145830) for every .css and .js file on the front‑office. -
Version changes automatically whenever the file’s timestamp changes—instant after every SFTP upload or theme edit.
-
Compatible with Never recompile template files and works even when CCC (Combine, Compress & Cache) is disabled—which PageSpeed Insights actually prefers for small modular files.
-
Zero code edits: install, enable, done.
-
Adds no external calls, keeps TTFB low, supports multi‑store.
Benefits for merchants
-
Always‑fresh design – Customers see the latest styling without CTRL + F5.
-
Better PageSpeed grades – Avoid the big‑bundle penalty of CCC while keeping cache efficiency.
-
Happier developers – Forget manual cache purges; focus on building features.
Technical details
Module version: 1.1.1
Compatibility: PrestaShop 1.7.x, 8.x and 9.x
CSS and JavaScript versioning can be enabled independently from the module configuration.
Uses the local file modification timestamp and adds or replaces the
ver=query parameter.Works when PrestaShop is installed in the domain root or in a subfolder such as
/shop/.Remote and inline assets are skipped; existing query strings and URL fragments are preserved.
Uses PrestaShop class overrides for the CSS and JavaScript asset managers; no core files are edited.
Supports multi-store installations.
Support & updates
6 months of module updates and technical support are included at no extra cost.
Professional installation is available as an optional add-on.
A 12-month extended support & updates plan is available as an optional add-on.
What’s inside the ZIP
/sem_cssjsversion/module folderConfiguration page with separate CSS and JavaScript versioning switches
PrestaShop 1.7 / 8 / 9 compatible asset-manager overrides
Upgrade routine and README with installation notes
Changelog
v1.1.1 – Fixed versioning on PrestaShop 8.1.x and later releases; improved subfolder-safe path resolution and refreshed installed overrides.
v1.1.0 – Added PrestaShop 1.7 / 8 / 9 asset-manager compatibility, subfolder support and safe query-string handling.
v1.0.0 – Initial release.
-
CompatibilityPrestaShop 1.7.x, 8.x and 9.x
-
Multi-store ReadyYes
-
TranslationsTranslatable through PrestaShop
-
LicenseOSL 3.0
-
Module Version1.1.1
-
Asset TypesCSS and JavaScript
-
Versioning MethodFile modification timestamp
-
Subfolder SupportYes — root or subfolder installation
-
CDN CompatibilityCloudflare and query-string aware CDNs
-
Query String HandlingPreserves existing queries; replaces existing ver=
-
External AssetsRemote and inline assets are skipped
-
ImplementationPrestaShop class overrides; no core file edits
-
Included Support & Updates6 months included
-
Professional InstallationAvailable as optional add-on
-
Extended Support & Updates12-month plan available as add-on
Checkout is protected with encrypted HTTPS connections.
Downloadable modules are delivered digitally after payment confirmation.
6 months of module updates and technical support are included.
Comments (0)
Your review appreciation cannot be sent
Report comment
Report sent
Your report cannot be sent