PackageTrack
Sign in Get early access

php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

2.1.0 27M downloads/mo #964 most downloaded on Packagist php-http/cache-plugin

What this package is like to depend on

Last release 3 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

2 releases in the last 12 months

see the full history below

Release timeline

20 releases · May 2016 to May 2026
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 20
  1. 2.1.0 12 May 2026
    Release notes
    • Added EtagCachePlugin to cache only ETag-backed responses and always revalidate them before serving cached bodies.
    Open source →
    Release notes

    Added

    • Added EtagCachePlugin to cache only ETag-backed responses and always revalidate them before serving cached bodies.
    Open source →
    Release notes

    2.1.0 Latest

    Latest

    Compare

    Choose a tag to compare

    Open source →
  2. 2.0.2 01 Dec 2025
    Release notes
    • Support Symfony 8.
    • Test with PHP 8.5.
    Open source →
    Release notes
    • Support Symfony 8.
    • Test with PHP 8.5.
    Open source →
    Release notes

    2.0.2

    Compare

    Choose a tag to compare

    Open source →
  3. 2.0.1 02 Oct 2024
    Release notes
    • Test with PHP 8.3 and 8.4.
    Open source →
    Release notes
    • Test with PHP 8.3 and 8.4.
    Open source →
    Release notes

    2.0.1

    Compare

    Choose a tag to compare

    Open source →
  4. 2.0.0 19 Feb 2024
    Release notes

    Changed

    • Drop support of deprecated PHP-HTTP StreamFactory, only PSR-17 StreamFactoryInterface is now supported.
    Open source →
    Release notes

    Changed

    • Drop support of deprecated PHP-HTTP StreamFactory, only PSR-17 StreamFactoryInterface is now supported.

    Version 1

    Open source →
    Release notes

    2.0.0

    Compare

    Choose a tag to compare

    Open source →
  5. 1.8.1 21 Nov 2023
    Release notes
    • Allow installation with Symfony 7.
    Open source →
    Release notes
    • Allow installation with Symfony 7.
    Open source →
    Release notes

    1.8.1

    Compare

    Choose a tag to compare

    Open source →
  6. 1.8.0 28 Apr 2023
    Release notes
    • Avoid PHP warning about serializing resources when serializing the response by detaching the stream.
    Open source →
    Release notes
    • Avoid PHP warning about serializing resources when serializing the response by detaching the stream.
    Open source →
    Release notes

    1.8.0

    Compare

    Choose a tag to compare

    Open source →
  7. 1.7.6 28 Apr 2023
    Release notes
    • Test with PHP 8.1 and 8.2
    • Made phpspec tests compatible with PSR-7 2.0 strict typing
    • Detect null and use 0 explicitly to calculate expiration
    Open source →
    Release notes
    • Test with PHP 8.1 and 8.2
    • Made phpspec tests compatible with PSR-7 2.0 strict typing
    • Detect null and use 0 explicitly to calculate expiration
    Open source →
    Release notes

    1.7.6

    Compare

    Choose a tag to compare

    Open source →
  8. 1.7.5 18 Jan 2022
    Release notes
    • Allow installation with psr/cache 3.0 (1.0 and 2.0 are still allowed too)
    Open source →
    Release notes
    • Allow installation with psr/cache 3.0 (1.0 and 2.0 are still allowed too)
    Open source →
    Release notes

    1.7.5

    Compare

    Choose a tag to compare

    Open source →
  9. 1.7.4 30 Nov 2021
    Release notes

    Added

    • Allow installation with Symfony 6
    Open source →
    Release notes

    Added

    • Allow installation with Symfony 6
    Open source →
    Release notes

    1.7.4

    Compare

    Choose a tag to compare

    Open source →
  10. 1.7.3 03 Nov 2021
    Release notes

    Changed

    • Be more defensive about cache hits. A cache entry can technically contain null.
    Open source →
    Release notes

    Changed

    • Be more defensive about cache hits. A cache entry can technically contain null.
    Open source →
    Release notes

    1.7.3

    Compare

    Choose a tag to compare

    Open source →
  11. 1.7.2 14 Apr 2021
    Release notes

    Added

    • Allow installation with psr/cache 2.0 (1.0 still allowed too)
    Open source →
  12. 1.7.1 13 Jul 2020
    Release notes

    Added

    • Support for PHP 8
    Open source →
  13. 1.7.0 26 Dec 2019
    Release notes

    Added

    • Support for Symfony 5.
    • Support for PSR-17 StreamFactoryInterface.
    • Added blacklisted_paths option, which takes an array of strings (regular expressions) and allows to define paths, that shall not be cached in any case.
    Open source →
  14. 1.6.0 23 Jan 2019
    Release notes

    Added

    • Support for HTTPlug 2 / PSR-18
    • 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 miss event. An implementation, AddHeaderCacheListener, is provided which will add an X-Cache header to the response with this information.
    Open source →
  15. v1.5.0 29 Nov 2017
    Release notes

    Added

    • Support for Symfony 4

    Changed

    • Removed check if etag is a string. Etag can never be a string, it is always an array.
    Open source →
  16. v1.4.0 05 Apr 2017
    Release notes

    Added

    • 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.

    Fixed

    • Issue where deprecation warning always was triggered. Not it is just triggered if respect_cache_headers is used.
    Open source →
  17. v1.3.0 28 Mar 2017
    Release notes

    Added

    • New methods option which allows to configure the request methods which can be cached.
    • New respect_response_cache_directives option to define specific cache directives to respect when handling responses.
    • Introduced CachePlugin::clientCache and CachePlugin::serverCache factory methods to easily setup the plugin with the correct config settigns for each usecase.

    Changed

    • The 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.
    • We always rewind the stream after loading response from cache.

    Deprecated

    • 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. If you had set respect_cache_headers to false, set the directives to [] to ignore all directives.
    Open source →
  18. v1.2.0 16 Aug 2016
    Release notes

    Changed

    • The default value for default_ttl is changed from null to 0.

    Fixed

    • Issue when you use respect_cache_headers=>false in combination with default_ttl=>null.
    • We allow cache_lifetime to be set to null.
    Open source →
  19. v1.1.0 04 Aug 2016
    Release notes

    Added

    • 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).

    Changed

    • Default hash algo used for cache generation (from md5 to sha1).

    Fixed

    • Cast max age header to integer in order to get valid expiration value.
    Open source →
  20. v1.0.0 04 May 2016
    Release notes
    • Initial release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive