2017 © Pedro Peláez
 

library cachebuster

Create new css and js files to bust long cached files

image

dnabeast/cachebuster

Create new css and js files to bust long cached files

  • Monday, May 22, 2017
  • by dnabeast
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Simple cachebuster for Laravel Blade

Installing

Add the dependency to your project:, (*1)

composer require DNABeast/cachebuster:dev-master

After updating composer, add the ServiceProvider to the providers array in config/app.php, (*2)

Laravel 5.2:

DNABeast\CacheBuster\CacheBusterServiceProvider::class,

USAGE

In a blade file: @cachebuster('css/style.css'), (*3)

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., (*4)

You may need to clear the view cache., (*5)

php artisan view:clear

The Versions

22/05 2017

dev-master

9999999-dev

Create new css and js files to bust long cached files

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dan Beeston

laravel cache blade