Loading src/CacheManager.php +5 −0 Original line number Diff line number Diff line Loading @@ -339,6 +339,11 @@ class CacheManager implements CacheManagerInterface, CacheTagsInvalidatorInterfa return FALSE; } // Verify if request has "ESI enabled" headers. Sometimes, you need to acces to your website without varnish. if ($this->request->headers->get('Surrogate-Capability') !== 'abc=ESI/1.0') { return FALSE; } $this->log(RfcLogLevel::DEBUG, 'ESI enabled for current request.'); return TRUE; Loading varnish/default.vcl +2 −0 Original line number Diff line number Diff line Loading @@ -150,6 +150,8 @@ sub vcl_recv { unset req.http.Cookie; } set req.http.Surrogate-Capability = "abc=ESI/1.0"; return (hash); } Loading Loading
src/CacheManager.php +5 −0 Original line number Diff line number Diff line Loading @@ -339,6 +339,11 @@ class CacheManager implements CacheManagerInterface, CacheTagsInvalidatorInterfa return FALSE; } // Verify if request has "ESI enabled" headers. Sometimes, you need to acces to your website without varnish. if ($this->request->headers->get('Surrogate-Capability') !== 'abc=ESI/1.0') { return FALSE; } $this->log(RfcLogLevel::DEBUG, 'ESI enabled for current request.'); return TRUE; Loading
varnish/default.vcl +2 −0 Original line number Diff line number Diff line Loading @@ -150,6 +150,8 @@ sub vcl_recv { unset req.http.Cookie; } set req.http.Surrogate-Capability = "abc=ESI/1.0"; return (hash); } Loading