friendsofsymfony/http-cache
PHP library to integrate apps with HTTP caching proxies (Varnish, NGINX, Symfony HttpCache, Fastly, Cloudflare). Send efficient cache invalidation/purge and tag requests, abstract proxy features, and test caching/invalidation with PHPUnit tools.
banPath to escape array of host names to be a correct regular expression.EventDispatchingHttpCache::forward method added in 2.16.0 was not
compatible with Symfony 4.4. Adjusted the signature to make it compatible.(Mistake, same as 2.16.0)
PRE_FORWARD and POST_FORWARD to allow event listeners to alter
the request before and after it is sent to the backend.POST_FORWARD event instead of
PRE_STORE. Using PRE_STORE, requests that are not considered cacheable by
Symfony were never cached, even when they had a custom TTL header.fallbackToSmaxage to CustomTtlListener to allow controlling
fallback to s-maxage if custom TTL header is not defined on the response.s-maxage, this bug might have led to caching responses that should not
have been cached.PRE_FORWARD and POST_FORWARD to allow event listeners to alter
the request before and after it is sent to the backend.POST_FORWARD event instead of
PRE_STORE. Using PRE_STORE, requests that are not considered cacheable by
Symfony were never cached, even when they had a custom TTL header.fallbackToSmaxage to CustomTtlListener to allow controlling
fallback to s-maxage if custom TTL header is not defined on the response.s-maxage, this bug might have led to caching responses that should not
have been cached.TagCapable::invalidateTags so you don't need to check if there are tags or not.RequestMatcher in favor of IpsRequestMatcher.RequestMatcher.php-http/message-factory to keep working with the legacy factories.TagHeaderParser that can split up a tag header into the list of tags.
This allows to correctly handle non-default tag separators in all places.Authorization and not Autorization.HttpKernelInterface::fetch - if you implement the method in your application,
you need to adjust when upgrading to Symfony 6.fos_user_context_hash method to be called in vcl_hash when using the user context
hash mechanism. This can avoid performance problems Varnish can run into when the hash Varys on
the basic authentication or session cookie.
If you use the user context, read the updated documentation and call fos_user_context_hash in
your vcl_hash function.[@internal](https://github.com/internal) constants in FOS\HttpCache\ProxyClient\Fastly as privatePurgeTagsListener and Symfony 5LegacyEventDispatcherProxy for Symfony >= 4.3 to avoid deprecation messages.How can I help you explore Laravel packages today?