Releases: FriendsOfSymfony/FOSHttpCacheBundle
2.1.1
2.1.0
-
Individual rules in the
cache_controlcan now again have amatch_response
oradditional_response_statusconfiguration to limit the rule to certain
responses.For this, the signature of CacheControlListener::addRule had to be changed.
It now expects a RuleMatcherInterface instead of the
ResponseMatcherInterface. If you extended the listener or change the service
configuration, this could be a BC BREAK for your application. -
If no response matching is configured on
cache_control, the global
cacheableconfiguration is now respected to decide whether cache headers
should be set.
2.0.0
2.0.0-beta2
adjust dependency on http-cache library
2.0.0-beta1
No functional changes since 2.0.0-alpha1
2.0.0-alpha1
General
- Updated the version of FOSHttpCache to 2.0.0. See the FOSHttpCache changelog
for more information. Most importantly, we removed the hard coupling on the
Guzzle HTTP client (using HTTPlug). Your composer.json now needs to
specify which HTTP client to install; see the installation instructions. - Deprecated methods have been removed.
Proxy client
- The configuration for the proxy client has been adjusted. Proxy servers are
now configured underhttpandserversmust be a list - a comma separated
string of server IPs is no longer supported.
Event listeners
- BC break: the
UserContextListenerconstructor signature was changed to
take an array of options. - BC break: renamed the event listener classes to
XyzListener.
Rule matcher
-
BC break: The
match_responseandadditional_cacheable_status
configuration parameters were removed for individual match rules. -
BC break: The second argument of the
RuleMatcherconstructor was changed
to take aResponseMatcherInterface. -
Cacheable status codes are now configured globally
(cacheable.response.additional_statusorcacheable.response.expression).
Tags
- BC break: The TagHandler has been split. Invalidating tags happens through the
CacheManager (if you use annotations for tag invalidation, you don't need to
change anything). Recording tags and writing them into the responses is now
done through the SymfonyResponseTagger.
Tests
- BC break: Dropped the proxy client services as they where not used anywhere. The
servicesfos_http_cache.test.client.varnishand
fos_http_cache.test.client.nginxno longer exist.
User context
- Added an option
always_vary_on_context_hashto make it possible to disable
automatically setting the vary headers for the user hash.