Varnish with Member app
I have installed varnish on the server and it works great, except on all pages where member signin check is done,
There is a cookie sent from the server (below), this stops varnish from caching that page.
Set-Cookie: PHPSESSID=41q8v6aa3krfvm14et670lm485; expires=Mon, 27-Jun-2016 04:15:30 GMT; Max-Age=432000; path=/; HttpOnly
I am not starting session on the page, however may be perch is already doing it. I have this code near top of the page "perch_member_logged_in()", to see if user is logged in. If user is not logged in, I think it is okay to not pass "set-cookie" or may be there is configuration is varnish I can do to ignore "set-cookie" until someone is logged in.
I want all non-logged in pages to be cached too. Right now I am getting "MISS" in varnish for pages. JPG, JS, CSS seems to be "HIT" for varnish.