2
votes

I am having trouble using varnish as backend to another varnish server. The front-end varnish uses Disk based caching and backend uses malloc which load-balances multiple backend servers. When I hit the backend server with www.example.com it retrieves pages perfectly, when I hit the front-end server I am receiving error: Error 200 OK

OK

Guru Meditation:

XID: 1692612819


Varnish cache server

. Is there any configuration changes to be made to use varnish caching server behind another one?
1

1 Answers

0
votes

It is probably due to the inconsistency between cache copies. Try applying HTTP/1.1 to access, and set the max-age for better synchronization.

Cache-control: max-age: The HTTP/1.1 replacement for the Expires header. While Expires >specifies the validity period using a full time stamp (valid until X day at Y time), max-age >uses a relative system (valid for Z many seconds) to avoid potential problems with time zones >and unsynchronised clocks.

Reference: http://www.anchor.com.au/hosting/dedicated/CreatingHighPerformanceDynamicWebSitesWithTheVarnishHttpAccelerator