jeroenvdheuve / assetic-cache-busting-worker
Assetic cache busting worker. Adds a hash to the filename based on file content.
Installs: 11 582
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- ext-hash: *
- kriswallsmith/assetic: ~1.2
Requires (Dev)
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2024-10-26 18:06:34 UTC
README
Description
This library provides an easy way to bust file cache for assetic. When this worker is hooked-up this worker will add a hash to the file name based on the file content. When the file content changes the hash changes as well.
This can be setup in Symfony by adding the worker like this:
services: cache_busting: class: jvdh\AsseticWorker\CacheBustingWorker tags: - { name: assetic.factory_worker }