Dear Forum, I hope that you can help me resolve this ... I have activated Nginx & Varnish & Apache, Website when I CURL returns AGE : 0 and i see that Varnish Cache is serving the site
However the test code <?php
echo rand(1, 99);
?>
returns a different number every time, so even through curl shows varnish in the header, varnish is not caching.
I edited he webserver config for the domain and selected Vanish, Selected the Wordpress.tpl file, rebuilt config and the site is up and running. I do not know what is missing, I suppose the website could be very busy and filling the cache perhaps too quickly but doubt that.. help would be great, or at least some hints to where I can look
TTP/1.1 200 OK
Server: nginx/1.22.1
Date: Wed, 22 Feb 2023 00:55:24 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 22
Connection: keep-alive
Keep-Alive: timeout=60
Cache-Control: max-age=0
Expires: Wed, 22 Feb 2023 00:55:24 GMT
Content-Encoding: gzip
X-Varnish: 296099
Age: 0
Via: 1.1 varnish (Varnish/5.2)