LaravelPackages.net
Acme Inc.
Toggle sidebar
vnclone/laravel-static-html-cache

store/cache generated responses as a static file

14
0
About vnclone/laravel-static-html-cache

vnclone/laravel-static-html-cache is a Laravel package for store/cache generated responses as a static file. It currently has 0 GitHub stars and 14 downloads on Packagist. Install it with composer require vnclone/laravel-static-html-cache. Discover more Laravel packages by vnclone or browse all Laravel packages to compare alternatives.

Last updated

laravel-static-html-cache

store/cache generated responses as a static file

Setup

Add the service provider to the config/app.php provider array

vnclone\LaravelStaticHtmlCache\Provider\LaravelStaticHtmlCacheProvider::class,

Then add the middleware to the end of your Http/Kernel.php middleware array.

protected $middleware = [
   \vnclone\LaravelStaticHtmlCache\Http\Middleware\LaravelStaticHtmlCacheMiddleware::class,
];

Clear the files

To clear all the files manually you can use an artisan task.

php artisan static-html-cache:clear
Comments