Download the PHP package alengo/sulu-http-cache-bundle without Composer
On this page you can find all versions of the php package alengo/sulu-http-cache-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alengo/sulu-http-cache-bundle
More information about alengo/sulu-http-cache-bundle
Files in alengo/sulu-http-cache-bundle
Package sulu-http-cache-bundle
Short Description HTTP cache helpers for Sulu/Symfony: strip tracking query parameters and store CTA marketing-attribution cookies at the reverse-proxy layer.
License MIT
Homepage https://github.com/alengodev/SuluHttpCacheBundle
Informations about the package sulu-http-cache-bundle
alengoHttpCacheBundle
HTTP-cache helpers for Sulu / Symfony, wired onto the FOS EventDispatchingHttpCache
(reverse-proxy) kernel:
- StripQueryParametersSubscriber — removes tracking query parameters (
utm_*,gclid,fbclid, …) atPRE_HANDLE, before the cache key is computed, so tracking-param URL permutations collapse onto a single cache entry. - CtaInterestsSubscriber — stores matched tracking parameters in a cookie (default
cta_interests) for marketing attribution. - CtaRefererSubscriber — stores an external referer in a cookie (default
cta_referer).
The CTA cookies are written in POST_HANDLE (after the store decision) so they are set per
response and never baked into a cached page.
Installation
Register the bundle (Symfony Flex does this automatically):
Wiring
The subscribers run on the reverse-proxy cache kernel, which is created in the front
controller / Kernel::getHttpCache() before the DI container is available. Wire them with
the provided configurator:
Configuration
All settings live in config/packages/alengo_http_cache.yaml. The configurator reads this
file directly at runtime (no container), so keep the values inline — cross-file imports and
%env()% placeholders are not resolved. Defaults are applied for anything omitted.
Each subscriber can be switched off with enabled: false. The resolved cookie names are also
exposed as the container parameters alengo_http_cache.cta_interests.cookie_name and
alengo_http_cache.cta_referer.cookie_name for container-side consumers (e.g. a form
controller that reads the cookie).
All versions of sulu-http-cache-bundle with dependencies
friendsofsymfony/http-cache Version ^3.0
symfony/config Version ^7.2
symfony/dependency-injection Version ^7.2
symfony/event-dispatcher Version ^7.2
symfony/http-foundation Version ^7.2
symfony/http-kernel Version ^7.2
symfony/yaml Version ^7.2