varnish-4.0-configuration-templates
varnish-4.0-configuration-templates copied to clipboard
Not getting a HIT on the domain
I get a HIT for css, js, etc but not getting a HIT on the domain itself.
I'm on Drupal 9. My set up: nginx:80 -> varnish:6081 -> apache:7080
Curl response:
HTTP/1.1 200 OK Server: nginx Date: Thu, 10 Oct 2024 06:37:15 GMT Content-Type: text/html; charset=UTF-8 Content-Length: 25745 Connection: keep-alive Cache-Control: must-revalidate, no-cache, private X-Drupal-Dynamic-Cache: MISS X-UA-Compatible: IE=edge Content-language: en X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN Expires: Sun, 19 Nov 1978 05:00:00 GMT X-Commerce-Core: 2 X-Varnish: 491585 Age: 0 Via: 1.1 varnish-v4 X-Cache: MISS X-Cache-Hits: 0 Accept-Ranges: bytes X-Powered-By: PleskLin
I use this link to check if my varnish set up is fully operational. https://isvarnishworking.uk/
Results:
Fail...ish! We detected Varnish on that domain, but the content doesn't appear to be cached. Best check your configuration.