Varnish waits for the complete page load before sending response to browser -


I have setup varnish to sit in front of a biscuit server. What I noticed is that the varnish loads the whole page Waiting to do (all CSS, JS, etc.) before it sends a response to the browser.

The user sees anything before that causes a major interval if I bypass varnish and go straight to the site, it immediately responds

the total page Load time can be the same, the notion that the site is slow.

Has anyone encountered it? If you do not inline JS and CSS in your HTML, then the behavior you describe is technically impossible. Your browser must have & lt; Script & gt; and & lt; Link & gt; To remove the tag and send different HTTP requests, you will need to obtain and parse the HTML; Even if they arrive at the same varnish server, there is no indication that they are part of the same "page".

Try to change the HTML to load static (JS, CSS and images) from a different hostname, they do not go to varnish; This makes it easy to debug things. You can get the same result using the command-line HTTP client, e.g. curl . If you still see the same slow performance in this scenario, then look at the varnish log, it is likely that you get some ideas to examine more things. Feel free to add it as a comment, in this way we will be able to assist you.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -