vnclone/laravel-static-html-cache

store/cache generated responses as a static file

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/vnclone/laravel-static-html-cache

dev-master 2017-06-22 23:18 UTC

This package is not auto-updated.

Last update: 2025-11-01 01:44:13 UTC


README

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