diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d8c311..c2087b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,10 @@ # Change Log - All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [2.2.0] - 2023-12-14 +## [3.0.0] - 2023-12-17 ### Added - New test cases for Cache using ETag @@ -13,6 +12,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Replaced read-only `micheh/psr7-cache` with updated `mikespub/micheh-psr7-cache` - Updated version constraints for dependencies +### Removed +- Support for PHP prior to 8.1. + ## [2.1.0] - 2020-12-02 ### Added - New middleware `ClearSiteData`. @@ -70,9 +72,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Changed - Updated to `http-interop/http-middleware#0.3` -## 0.1.0 - 2016-10-03 +## [0.1.0] - 2016-10-03 First version +[3.0.0]: https://github.com/middlewares/cache/compare/v2.1.0...v3.0.0 [2.1.0]: https://github.com/middlewares/cache/compare/v2.0.0...v2.1.0 [2.0.0]: https://github.com/middlewares/cache/compare/v1.1.0...v2.0.0 [1.1.0]: https://github.com/middlewares/cache/compare/v1.0.0...v1.1.0 @@ -82,3 +85,4 @@ First version [0.3.1]: https://github.com/middlewares/cache/compare/v0.3.0...v0.3.1 [0.3.0]: https://github.com/middlewares/cache/compare/v0.2.0...v0.3.0 [0.2.0]: https://github.com/middlewares/cache/compare/v0.1.0...v0.2.0 +[0.1.0]: https://github.com/middlewares/cache/releases/tag/v0.1.0 diff --git a/README.md b/README.md index 734486b..18d6a1a 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,11 @@ Middleware components with the following cache utilities: * [CachePrevention](#cacheprevention) * [Expires](#expires) * [Cache](#cache) +* [ClearSiteData](#clearsitedata) ## Requirements -* PHP >= 7.2 +* PHP >= 8.2 * A [PSR-7 http library](https://github.com/middlewares/awesome-psr15-middlewares#psr-7-implementations) * A [PSR-15 middleware dispatcher](https://github.com/middlewares/awesome-psr15-middlewares#dispatcher) @@ -69,7 +70,7 @@ $expires = (new Middlewares\Expires($durations))->defaultExpires($default); ## Cache -Saves the response headers in a [PSR-6 cache pool](http://www.php-fig.org/psr/psr-6/) and returns `304` responses (Not modified) if the response is still valid. This saves server resources and bandwidth because the body is returned empty. It's recomended to combine it with `Expires` to set the lifetime of the responses. +Saves the response headers in a [PSR-6 cache pool](http://www.php-fig.org/psr/psr-6/) and returns `304` responses (Not modified) if the response is still valid (based on its `ETag` or `Last-Modified` header). This saves server resources and bandwidth because the body is returned empty. It's recomended to combine it with `Expires` to set the lifetime of the responses. ```php $cachePool = new Psr6CachePool(); diff --git a/composer.json b/composer.json index 7643672..822d422 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "mikespub/middlewares-cache", + "name": "middlewares/cache", "type": "library", "description": "Middleware with various cache utilities", "license": "MIT", @@ -15,7 +15,7 @@ }, "require": { "php": ">=8.1", - "middlewares/utils": "^3.3", + "middlewares/utils": "^4.0", "mikespub/micheh-psr7-cache": "^2.0", "psr/cache": "^1.0 || ^2.0 || ^3.0", "psr/http-server-middleware": "^1.0"