NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #762 most downloaded on Packagist
A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)
Latest stable
8.0.0
Last release 3 months ago
29 Jul 2026
Release timing varies
gaps range from 3 weeks to 12 months
Most releases are documented
notes for 52 of 58 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
61 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Modernize PHP support: drop PHP < 8.2 and add PHP 8.5 by @Kevinrob in https://github.com/Kevinrob/guzzle-cache-middleware/pull/212
Full Changelog: https://github.com/Kevinrob/guzzle-cache-middleware/compare/7.0.0...8.0.0
Add support for Guzzle 8 by @GrahamCampbell in https://github.com/Kevinrob/guzzle-cache-middleware/pull/220
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: https://github.com/Kevinrob/guzzle-cache-middleware/compare/8.0.0-RC2...8.0.0-RC3
Fix Age header value type to string for PSR compliance by @ievgeniiskliarenko in https://github.com/Kevinrob/guzzle-cache-middleware/pull/218
Full Changelog: https://github.com/Kevinrob/guzzle-cache-middleware/compare/v8.0.0-RC1...8.0.0-RC2
Modernize PHP support: drop PHP < 8.2 and add PHP 8.5 by @Kevinrob in #212
Full Changelog: 7.0.0...v8.0.0-RC1
Full Changelog: https://github.com/Kevinrob/guzzle-cache-middleware/compare/7.0.0...v8.0.0-RC1
Fix binary files being truncated when cached by @vojtagrec in https://github.com/Kevinrob/guzzle-cache-middleware/pull/197
Full Changelog: https://github.com/Kevinrob/guzzle-cache-middleware/compare/6.0.0...7.0.0
Add missing returns by @mxr576 in https://github.com/Kevinrob/guzzle-cache-middleware/pull/186
static keyword instead of self by @jblz in https://github.com/Kevinrob/guzzle-cache-middleware/pull/189Full Changelog: https://github.com/Kevinrob/guzzle-cache-middleware/compare/v5.1.0...6.0.0
always return stale on rejection
(feat): Upgrade to Flysystem v2
fix: restore cache entry unserialization compatibility #181
use __serialize instead of __sleep on CacheEntry #163
The inspect_all function has been changed to Utils::inspectAll #178
The inspect_all function has been changed to Utils::inspectAll #178
Update composer allow-plugins directive #168
Nothing published for this version
Drop support of PHP <7.2.0 #154
Allow guzzlehttp/psr7 to use version ^2.0.0 #151
https://github.com/Kevinrob/guzzle-cache-middleware/commit/0e4dfb47e02f2b6f9b36c5ec510da98ca96306b9 set constraint for guzzlehttp/psr7
guzzlehttp/psr7Catch and ignore file not found errors. #130
Also put entries into the cache that allow stale-while-revalidate #125 @mpdude
Fix Laravel cache duration changes #116 (PR #123)
Laravel cache duration changes #116 (PR #123)Fix #102 with #103 add TTL to PSR16 storage implementation @sergiuPHP
add TTL to PSR16 storage implementation @sergiuPHPAdd dynamic TTL for GreedyCacheStrategy (#98 et #100)
Add dynamic TTL for GreedyCacheStrategy (#98 et #100)
Example:
$request = (new Request('GET', 'http://test.com/'))
->withHeader(GreedyCacheStrategy::HEADER_TTL, 120);
$this->client->send($request);
- #97 Add PSR-16 support with cache/simple-cache-bridge @renanbr
Adding delete method for removing request from cache #96
New major version 3.0.0
delete method for removing request from cache #96Fix calls to static method addToCache to allow subclasses to override it #89 @deains
Nothing published for this version
- #78 Depend on contract instead of the implementation. @atehnix
- Fix Laravel cache #74 @adduc
- #73 Prevent meta-headers from being included in cache @deains
Nothing published for this version
PR #63 Switched to using "forever" in Laravel's cache @ObliviousHarmony
Fix compliance with stale-while-revalidate #57 (@deains)
- #50 Better usage of hash for the cache key and check if the CacheEntry is correct
CacheEntry is correctImprove Psr6CacheStorage @BenMorel (Issue #48 - PR #49)
Fix issue with headers and re-validate reponses (#45 @ppaulis)
Fix #40 Response Body Rewind (@EAnushan)
Response Body Rewind (@EAnushan)Little fix for not breaking cache when upgrading from <1.0
<1.0- #23 Implement header Age - #25 Implement "Request Cache-Control Directives"
Age\Closure is too strict as type hint #33 (@dbellettini)
\Closure is too strict as type hint #33 (@dbellettini)Some bugs/logic fixed (#11, #32)
- Expires with Cache-Control #31
Expires with Cache-Control #31Use a better way to parse Cache-Control header with a beautiful and RFC compliant regex. Before this, many responses was "MISS".
Use a better way to parse Cache-Control header with a beautiful and RFC compliant regex.
Before this, many responses was "MISS".
Nothing published for this version
Fix a possible bug with some streams
Fix a bug if max-age is not the first in Cache-Control
max-age is not the first in Cache-ControlCacheEntry)Nothing published for this version
- #80 Improve README @afoeder - #81 WordPress Storage @colinodell - #83 Greedy cache strategy improvements @bpolaszek - #84 Null object pattern @bpola
- #75 Cache now respects vary headers (Fix #35) @wheelsandcogs - #76 Test missing headers in responses @deviantintegral
- #70 Add compressed doctrine storage stratrgy @viscat
Adding storage adapter for Laravel - #54 @M165437
- #51 Add update method for make it easy to change the behavior (PR #52)
Add storage for PSR6 Cache php-fig/cache (#46 @webda2l)
Add storage for PSR6 Cache php-fig/cache (#46 @webda2l)
Add GreedyCacheStrategy #38 (@jeromegamez)
GreedyCacheStrategy #38 (@jeromegamez)First released version of the library with support of:
First released version of the library with support of:
Cache-Control in Request and ResponseExpiresPragma: no-cacheAge in cached ResponseKevinrob\GuzzleCache\Storage\DoctrineCacheStorageKevinrob\GuzzleCache\Storage\FlysystemStorageAdd some basic support of Cache-Control in the Request:
Add some basic support of Cache-Control in the Request: (#25)
Cache-Control: no-storeCache-Control: no-cachePragma: no-cacheRename DoctrineCacheWrapper to DoctrineCacheStorage
DoctrineCacheWrapper to DoctrineCacheStorageFlysystemStorage for Flysystem (league/flysystem)Nothing published for this version
Refactoring the code and clean up a little bit.
Refactoring the code and clean up a little bit.
Add support for "stale-while-revalidate". The re-validation will occur at the end of the script or when CacheMiddleware::purgeReValidation() is called
Add support for "stale-while-revalidate". The re-validation will occur at the end of the script or when CacheMiddleware::purgeReValidation() is called.
You must set the client with CacheMiddleware::setClient(Client) before.
- use doctrine/cache - support only validation
Adding support of: - Cache-Control:no-cache - Only cache HEAD and GET
Adding support of:
One column per quarter.