jeroenvdheuve/assetic-cache-busting-worker-bundle
Symfony bundle that adds an Assetic worker appending cache-busting query strings to asset URLs, so updated CSS, JS, and images are served fresh without stale browser caches. Integrates with Assetic's worker pipeline for automatic asset versioning.
CacheBustingWorker in the DI container so compiled assets get a content hash in the filename (e.g. app.a1b2c3d4.css). That is a real product decision — long-lived CDN/browser caching with immutable filenames — but this package is only the wiring, not the mechanism.elixir-era version(). Do not let the "PHP package" label pull it into a Laravel build-vs-buy comparison.Consider it only when all of the following hold:
assetic/cache-busting-worker and just want the Symfony bundle glue.Look elsewhere — decisively — when:
symfony/asset versioning, which gives content-hashed filenames natively and is maintained.--ignore-platform-reqs hacks.To executives: Do not adopt this. It is an archived, unmaintained Symfony bundle from 2016 with two stars and zero downstream dependents, used to add a content hash to compiled asset filenames. The capability it provides — cache-busting so browsers and CDNs fetch new assets after a deploy — is genuinely important, but this is not the way to get it in 2024. Its presence in a codebase is a signal that the app sits on Assetic, an asset pipeline the Symfony community has moved past. Recommend funding a short migration to a supported pipeline rather than a dependency on an unmaintained one; the security and upgrade risk outweighs the negligible integration savings.
To engineering: This is a container-configuration shim around assetic/cache-busting-worker — it registers the worker so Assetic writes content-hashed filenames. Low complexity, low risk to remove, and effectively zero cost to replicate if some legacy path truly needs it. For anything greenfield or Laravel-based, close the ticket: wrong framework, wrong decade. For legacy Symfony, put it on the decommission list alongside Assetic itself and pair the removal with the move to Encore or AssetMapper.
How can I help you explore Laravel packages today?