Download the PHP package spatie/laravel-responsecache without Composer
On this page you can find all versions of the php package spatie/laravel-responsecache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spatie/laravel-responsecache
More information about spatie/laravel-responsecache
Files in spatie/laravel-responsecache
Package laravel-responsecache
Short Description Speed up a Laravel application by caching the entire response
License MIT
Homepage https://github.com/spatie/laravel-responsecache
Informations about the package laravel-responsecache
Speed up an app by caching the entire response
[](https://packagist.org/packages/spatie/laravel-responsecache) [](https://github.com/spatie/laravel-responsecache/actions?query=workflow%3Arun-tests+branch%3Amain) [](https://github.com/spatie/laravel-responsecache/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain) [](https://packagist.org/packages/spatie/laravel-responsecache)This Laravel package can cache an entire response. By default it will cache all successful GET requests that return text based content (such as HTML and JSON) for a week. This could potentially speed up the response quite considerably.
The first time a request comes in, the package will save the response before sending it to the user. When the same request comes in again, the cached response is returned without going through the entire application.
Here's a quick example:
For pages where brief staleness is acceptable, you can use flexible caching. After the lifetime expires, the stale response is still served instantly while the cache refreshes in the background. Once the grace period is over, the cache is considered expired and the next request will be fully recalculated:
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Documentation
All documentation is available on our documentation site.
Testing
You can run the tests with:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Freek Van der Herten
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-responsecache with dependencies
illuminate/cache Version ^12.0|^13.0
illuminate/console Version ^12.0|^13.0
illuminate/container Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
nesbot/carbon Version ^3.0
spatie/laravel-package-tools Version ^1.9
spatie/php-attribute-reader Version ^1.0
