store/cache generated responses as a static file
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
store/cache generated responses as a static file
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,
];
To clear all the files manually you can use an artisan task.
php artisan static-html-cache:clear