If a certain condition is met, is it possible to tell symfony not to cache the current request? I know the configuration flag contextual, but this is an action, not partial or component, so I donβt think it applies.
Context: I am running a multisite CMS. Each site can have several domain names associated with it, but one of them is set as primary. This is a request for a page with an alternative domain name, it is sent to the primary. But the action is cached, so when the same URL is available, it serves for caching instead of redirecting.
source
share