NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #786 most downloaded on Packagist
PSR-6 Cache plugin for HTTPlug
Last release 5 months ago
12 May 2026
Ships fairly regularly
a new release about every 7 months
Nearly every release is documented
notes for 20 of 20 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
20 releases · first in 2016
Added EtagCachePlugin to cache only ETag-backed responses and always revalidate them before serving cached bodies.
EtagCachePlugin to cache only ETag-backed responses and always revalidate them before serving cached bodies.Support Symfony 8. Test with PHP 8.5.
One column per quarter.
2.0.2
Compare
Test with PHP 8.3 and 8.4.
Drop support of deprecated PHP-HTTP StreamFactory , only PSR-17 StreamFactoryInterface is now supported.
StreamFactory, only PSR-17 StreamFactoryInterface is now supported.StreamFactory, only PSR-17 StreamFactoryInterface is now supported.Allow installation with Symfony 7.
Avoid PHP warning about serializing resources when serializing the response by detaching the stream.
Made phpspec tests compatible with PSR-7 2.0 strict typing
null and use 0 explicitly to calculate expirationAllow installation with psr/cache 3.0 (1.0 and 2.0 are still allowed too)
Allow installation with Symfony 6
Be more defensive about cache hits. A cache entry can technically contain null .
null.Allow installation with psr/cache 2.0 (1.0 still allowed too)
### Added - Support for PHP 8
Support for PSR-17 StreamFactoryInterface.
StreamFactoryInterface.blacklisted_paths option, which takes an array of strings (regular expressions) and allows to define paths, that shall not be cached in any case.Added cache_listeners option, which takes an array of CacheListeners, who get notified and can optionally act on a Response based on a cache hit or mi
cache_listeners option, which takes an array of CacheListeners, who get notified and can optionally act on a Response based on a cache hit or miss event. An implementation, AddHeaderCacheListener, is provided which will add an X-Cache header to the response with this information.Removed check if etag is a string. Etag can never be a string, it is always an array.
Issue where deprecation warning always was triggered. Not it is just triggered if respect_cache_headers is used.
CacheKeyGenerator interface that allow you to configure how the PSR-6 cache key is created. There are two implementations
of this interface: SimpleGenerator (default) and HeaderCacheKeyGenerator.respect_cache_headers is used.The respect_cache_headers option is deprecated and will be removed in 2.0. This option is replaced by the new respect_response_cache_directives option…
methods option which allows to configure the request methods which can be cached.respect_response_cache_directives option to define specific cache directives to respect when handling responses.CachePlugin::clientCache and CachePlugin::serverCache factory methods to easily setup the plugin with
the correct config settigns for each usecase.no-cache directive is now respected by the plugin and will not cache the response. If you need the previous behaviour, configure respect_response_cache_directives.respect_cache_headers option is deprecated and will be removed in 2.0. This option is replaced by the new respect_response_cache_directives option.
If you had set respect_cache_headers to false, set the directives to [] to ignore all directives.The default value for default_ttl is changed from null to 0.
default_ttl is changed from null to 0.respect_cache_headers=>false in combination with default_ttl=>null.cache_lifetime to be set to null.Support for cache validation with ETag and Last-Modified headers. (Enabled automatically when the server sends the relevant headers.)
hash_algo config option used for cache key generation (defaults to sha1).- Initial release
Your coding agent can read these notes before it upgrades. Set up the MCP server →