« Previous -
Version 3/4
(diff) -
Next » -
Current version
Martin Bless, 2012-06-12 10:50
just a minor typo
Varnish¶
Given you have this Setup:
Varnish -> TYPO3
SOLR Indexer might have some issues, when the page to index is behind a Varnish Proxy. We have collected two ways of solving this issue
Bypassing varnish¶
Bypass when X-Tx-Solr-Iq is present¶
The SOLR indexer request send the header X-Tx-Solr-Iq.
To have bypass the Varnish caching, but this into your sub vcl_recv part of the configuration
if (req.http.X-Tx-Solr-Iq) {
return(pipe);
}
Using Cache-Control¶
Put this into your sub vcl_fetch part of the configuration
if (req.http.Cache-Control ~ "no-cache") {
set beresp.ttl = 0s;
#Make sure ESI includes are processed!
esi;
set beresp.http.X-Cacheable = "NO:force-reload";
#Make sure that We remove alle cache headers, so the Browser does not cache it for us!
remove beresp.http.Cache-Control;
remove beresp.http.Expires;
remove beresp.http.Last-Modified;
remove beresp.http.ETag;
remove beresp.http.Pragma;
return (deliver);
}