ESI within a varnish cascade? -


we want set varnish cascade have level 1 , level 2 caching. means on request - varnish level 1 processes , routes - varnish level 2 routes - application

question: if application adds esi within content, possible define namespaces esi handled within level 2 varnish , other ones within level 1 varnish?

thanks

for varnish process esi 1 needs add

set beresp.do_esi = true; 

to "vcl_backend_response" ("vcl_fetch" in varnish 3) in ones vcl.

as can done conditionally, e.g.

sub vcl_backend_response {     if (bereq.url == "/test.html") {        set beresp.do_esi = true; // esi processing     } } 

you control if esi processed in 1 or other varnish instance. see: https://www.varnish-cache.org/docs/4.0/users-guide/esi.html


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -