WPForo with Varnish
Got a little issue with your plugin working along with Varnish.
Obviously here's what I got while testing if Varnish is properly working on my site : (attach file)
I tried to disabled features from wpForo or find a way to limit the set-cookies to only Forum pages but nothing works so far (maybe I'm missing something).
Here's the "curl -I myurl.com" result :
cache-control: public, max-age=600
content-type: text/html; charset=UTF-8
link: < https://dev-mysite.pantheonsite.io/wp-json/>; rel="https://api.w.org/"
link: < https://dev-mysite.pantheonsite.io/>; rel=shortlink
set-cookie: SESSacc6532b7fec69a7ae2d4467de9b70dd=d77b19681c22f821ffdc8ad59c2035e9; expires=Mon, 08-Jul-2019 12:12:13 GMT; Max-Age=0
set-cookie: SSESSacc6532b7fec69a7ae2d4467de9b70dd=b42337a5ef828f72f75c08a71173a149; path=/; domain=.dev-mysite.pantheonsite.io; secure; HttpOnly
via: 1.1 varnish
date: Mon, 08 Jul 2019 12:12:14 GMT
via: 1.1 varnish
x-served-by: cache-mdw17368-MDW, cache-lcy19243-LCY
x-cache: MISS, MISS
x-cache-hits: 0, 0
vary: Accept-Encoding, Cookie, Cookie
So Age: 0 and there's a Max-Age set to 0 too. If I deactivate wpForo, varnish is just working fine.
I'm not really a WordPress expert and it's pretty much a nightmare to work on 😖.
I've checked most of the relative subject in your forum/wp-forum but didn't found any way to fix it properly so far.
Is there any 'known' fix for this kind of issue? Am I missing something?
Thank you for contacting us.
You should exclude wpForo page (e.g. /community/*) from caching plugins. wpForo has own cache system. It comes with four different built-in caching systems.
Also, wpForo has a filter that allows reducing the cookies:
You can also fully disable Forum Cookies. The option is located in Dashboard > Forums > Tools > Privacy & Rules admin page.
I think Varnish is not controlled by a WP Plugin and we are not talking about a caching plugin.
So, your hosting provider could help more on this, on how to exclude wpForo pages and test.