dnabeast/cachebuster

This package is abandoned and no longer maintained. No replacement package was suggested.

Create new css and js files to bust long cached files

dev-master 2017-05-21 23:06 UTC

This package is not auto-updated.

Last update: 2019-02-23 01:17:28 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