Skip to content

dnabeast/cachebuster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple cachebuster for Laravel Blade

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

About

Simple cachebuster for Laravel Blade

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages