Hot answers tagged

4

How does BigPipe have an effect if my traffic is mostly anonymous and behind varnish? This really depends on the content of the page. Taking away any content depending on the logged-in user there might be no dynamic part left which could have any effect. Additionally, why does the second request bypass Varnish? As mentioned in the module description it is ...


3

The code depends on host name and IP address. So you could add the cache contexts url.site and ip: $response = new TrustedRedirectResponse('https://site.ch/'); $response->getCacheableMetadata()->addCacheContexts(['ip', 'url.site']); $event->setResponse($response); In this case, though, caching doesn't make much sense because it doesn't save many ...


Only top voted, non community-wiki answers of a minimum length are eligible