dnabeast / cachebuster
Create new css and js files to bust long cached files
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/dnabeast/cachebuster
Requires
- illuminate/support: ^5.2
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is not auto-updated.
Last update: 2022-02-01 12:58:48 UTC
README
Installing
Add the dependency to your project:
composer require DNABeast/cachebuster:dev-master
After updating composer, add the ServiceProvider to the providers array in config/app.php
Laravel 5.2:
DNABeast\CacheBuster\CacheBusterServiceProvider::class,
USAGE
In a blade file: @cachebuster('css/style.css')
If in a production environment it checks whether the file is older or a different size and if it is creates a new build file. Good for busting long caches set by your server.
You may need to clear the view cache.
php artisan view:clear