Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Releases: micheh/psr7-cache

0.5

15 Apr 16:42
Compare
Choose a tag to compare
  • Added support for unsafe conditional requests (If-Match and If-Unmodified-Since headers). Use $util->hasStateValidator($request) to check if the request includes these headers and $util->hasCurrentState($request, $eTag, $lastModified) to check if the request has the current state.
  • Added weak ETag comparison for the If-None-Match header

0.4

17 Feb 21:01
Compare
Choose a tag to compare
0.4

Removed the public static function CacheControl::fromString to prevent users to call this method on the base class (as this would result in a fatal error since the abstract base class cannot be instantiated). Instead, the fromString method is added to the two implementations: RequestCacheControl::fromString and ResponseCacheControl::fromString.