A Laravel middleware for adding ETags to HTTP requests to improve response times
Run the following command to install the package:
composer require matthewbdaly/laravel-etag-middleware
Then just include this in your app/Http/Kernel.php
in the appropriate place where you want to import the middleware:
\Matthewbdaly\ETagMiddleware\ETag::class