Using varnish to cache authenticated Drupal pages
I have a site which requires users to be logged in, but the pages are not customised. I was playing with a way to cache the content in varnish while still doing an access check. This method uses an access check pages (test.php below) which then uses ESI to load the real, cacheable content.
I’ve tried it in a dev env, I’m not yet sure if we’ll use this in production.
Varnish config