<div dir="ltr"><p style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">Hello,</p><p style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">I have successfully set up Varnish4 to cache the entire site for specific time.</p><p style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">It is working with no problem.</p><p style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">Since these are our specific customers sites, we can safety remove headers like 'Set-Cookie', "Vary', because those sites do not have user-login, only backend.</p><p style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">The problem is that later we wanted to connect one more site, they return near the same Headers, but one is not cached (the dynamic part). What is cached is only the assets like css, js etc..</p><p style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">The only possible problem, we could spot, is that for example these are response headers are different when we call the problematic site two times in a row.:</p><p style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">```</p><p style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">HTTP/1.1 200 OK<br>Age: 0<br>Connection: keep-alive<br>Content-Encoding: gzip<br>Content-Length: 3354<br>Content-Type: text/html; charset=UTF-8<br>Date: Sun, 01 Nov 2015 09:45:18 GMT<br>Vary: Accept-Encoding<br>X-Cache-Hits: 0<br>X-Varnish-Cache: MISS</p><p style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px"><br></p><p style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">HTTP/1.1 200 OK<br>Age: 0<br>Connection: keep-alive<br>Content-Length: 0<br>Content-Type: text/html; charset=UTF-8<br>Date: Sun, 01 Nov 2015 09:45:33 GMT<br>X-Cache-Hits: 0<br>X-Varnish-Cache: MISS</p><div style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">```</div><div style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">As you can see, there are no 'Content-Encoding' headers, and 'Content-Length' is set to: 0</div><div style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">after I run the headers check for second time.</div><div style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">Maybe someone of you have ideas what I could  be wrong?</div><div style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px"><br></div><div style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">Thank you,</div><div style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px">Jaroslav</div></div>