- Support for Symfony 4
- Removed check if etag is a string. Etag can never be a string, it is always an array.
CacheKeyGenerator
interface that allow you to configure how the PSR-6 cache key is created. There are two implementations of this interface:SimpleGenerator
(default) andHeaderCacheKeyGenerator
.
- Issue where deprecation warning always was triggered. Not it is just triggered if
respect_cache_headers
is used.
- 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
andCachePlugin::serverCache
factory methods to easily setup the plugin with the correct config settigns for each usecase.
- The
no-cache
directive is now respected by the plugin and will not cache the response. If you need the previous behaviour, configurerespect_response_cache_directives
. - We always rewind the stream after loading response from cache.
- The
respect_cache_headers
option is deprecated and will be removed in 2.0. This option is replaced by the newrespect_response_cache_directives
option. If you had setrespect_cache_headers
tofalse
, set the directives to[]
to ignore all directives.
- The default value for
default_ttl
is changed fromnull
to0
.
- Issue when you use
respect_cache_headers=>false
in combination withdefault_ttl=>null
. - We allow
cache_lifetime
to be set tonull
.
- 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).
- Default hash algo used for cache generation (from md5 to sha1).
- Cast max age header to integer in order to get valid expiration value.
- Initial release