Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Responsecache Laravel Package

spatie/laravel-responsecache

Caches full Laravel responses to speed up apps. Automatically stores successful GET HTML/JSON for a configurable time and serves cached output on repeat requests. Supports per-route middleware, custom rules, and optional stale-while-revalidate style caching.

View on GitHub
Deep Wiki
Context7
8.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/8.2.0...8.3.0

8.1.0

What's Changed

  • Switch SVG diagrams to light theme for readable text on docs
  • Add responsecache development skill

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/8.0.0...8.1.0

8.0.0

What's Changed

  • Add support for PHP 8.4 and Laravel 12
  • Drop support for PHP 8.3 and below
  • Drop support for Laravel 11 and below
  • Add flexible caching via FlexibleCacheResponse middleware — serves stale responses instantly while refreshing the cache in the background
  • Add PHP attributes (#[Cache], #[FlexibleCache], #[NoCache]) for controller-level cache configuration
  • Rename event classes to use Event suffix (e.g. CacheMissedCacheMissedEvent)
  • Replace cacheRequestUntil() with cacheLifetimeInSeconds() in CacheProfile interface
  • Replace CacheResponse::using() with CacheResponse::for() and FlexibleCacheResponse::for()
  • Improved debug headers configuration
  • Fix return types in Facade PHPDoc for clear() and forget()

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.7.2...8.0.0

7.7.2

What's Changed

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.7.1...7.7.2

7.7.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.7.0...7.7.1

7.7.0

What's Changed

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.6.5...7.7.0

7.6.5
7.6.4

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.6.3...7.6.4

7.6.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.6.2...7.6.3

7.6.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.6.1...7.6.2

7.6.1
7.6.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.5.2...7.6.0

7.5.2
7.5.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.4.10...7.5.0

7.4.10

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.4.9...7.4.10

7.4.9
  • Fix docblock
7.4.8

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.4.7...7.4.8

7.4.7

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.4.6...7.4.7

7.4.6
  • add support for L10
7.4.5

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.4.4...7.4.5

7.4.4

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.4.3...7.4.4

7.4.3
7.4.2
7.4.1

What's Changed

Full Changelog: https://github.com/spatie/laravel-responsecache/compare/7.4.0...7.4.1

7.3.0
7.2.0
  • support Laravel 9
7.1.0
  • add CacheItemSelector
7.0.1
  • add url option to ClearCommand (#348)
7.0.0
  • require PHP 8+
  • drop support for PHP 7.x
  • use PHP 8 syntax where possible
6.6.9
  • fix for issue #331 (#344)
6.6.7
  • add support for PHP 8
6.6.6
  • fix clearing tagged cache
6.6.5
  • fix tagged responsecache:clear (#316)
6.6.4
  • Support Laravel 8
6.6.3
  • replace Laravel/framework with individual packages (#304)
6.6.2
  • support JSON types other than application/json (#299)
6.6.1
  • change to the proper way of setting app URL on runtime (#290)
6.2.1
  • make compatible with Laravel 7, so the package can be used on PHP 7.3
6.6.0
  • drop support for Laravel 6 to fix the test suite (namespace of TestResponse has changed)
6.5.0
  • add support for Laravel 7
6.6.8
  • use package service provider
6.4.0
  • drop support for all non-current PHP and Laravel versions
6.3.0
  • add support for custom serializers
6.2.0
  • make compatible with Laravel 6
6.1.1
  • restore laravel 5.7 compatibility
6.1.0
  • add support for cache tags
6.0.2
  • make json responses cacheable
6.0.1
  • use Rfc2822S formatted date in cache time header
6.0.0
  • added support for replacers
  • you can now swap out RequestHasher in favor of a custom one
  • CacheAllSuccessfulGetRequests will only cache responses of which the content type starts with text
  • removed deprecated Flush command
  • \Spatie\ResponseCache\ResponseCacheFacade has been removed
  • dropped support for carbon v1
  • dropped support for PHP 7.2
5.0.3
  • make sure the request starts with the app url - fixes #177
5.0.2
  • make host specific caches
5.0.1
  • fix cache lifetime in config file
5.0.0
  • drop support for Laravel 5.7 and lower
  • drop support for PHP 7.0 and lower
  • change all cache time parameters to seconds (see UPGRADING.md)
4.4.5
  • add support for Laravel 5.8
  • you can no longer add multiple CacheResponse middleware to one route
4.4.4
  • fix for caching urls with query parameters
4.4.3
  • fix for forgetting a specific url
4.4.2
  • add support for Laravel 5.7
4.4.1
  • fix for issue #123
4.4.0
  • add support for Lumen
4.3.0
  • add forget
4.2.1
  • add support for L5.6
4.2.0
  • Added: clear() method and responsecache:clear command
  • Deprecated: flush() method and responsecache:flush command

Deprecated features will still work until the next major version.

4.1.1
  • Added: Better exception handling when something goes wrong unserializing the response
4.1.0
  • Added: Support for specific lifetimes on routes
4.0.1
  • Fixed: Artisan command registration
4.0.0
  • Added: Support for Laravel 5.5
  • Removed: Support for all older Laravel versions
  • Changed: Renamed facade class
3.2.0
  • Added: Support for BinaryFileResponse
3.1.0
  • Added: Support for taggable cache
3.0.1
  • Fixed: Php version dependency in composer.json
3.0.0
  • Added: enabled method on cache profiles
  • Added: Events
  • Changed: Middleware won't automatically be registered anymore
  • Changed: Renamed config file
  • Changed: Renamed various methods for readability
  • Removed: Dropped PHP 5.6 support
2.0.0
  • Added: Support for Laravel 5.4
  • Removed: Dropped support for all older Laravel versions
1.1.7
  • Added: Usage of RESPONSE_CACHE_LIFETIME env var to config file
1.1.6
  • Changed: Debug headers will not be sent when APP_DEBUG is set to false
1.1.5
  • Fixed: Issue where the cache middleware couldn't correctly determine the currently authenticated user
1.1.4
  • Fixed: An issue where cached request were still served even if the package was disabled via the config file
1.1.3
  • Fixed: An issue where the cache header could not be set
1.1.2
  • Fixed: BaseCacheProfile has been made abstract (as it should have been all along)
1.1.1
  • Fixed: Default cachetime
1.1.0
  • Added: A command to flush the response cache
1.0.0
  • Initial release
What's
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport