@asti
Thank you for the update.
I did try the new 7.6.4 plugin but the set-cookie was still present in the header. Hopefully this will be fixed in 7.6.5?
The relevant info on NGINX caching is here:
https://www.nginx.com/blog/nginx-caching-guide/
And specifically:
How Does NGINX Determine Whether or Not to Cache Something?
NGINX caches a response only if the origin server includes either the Expires header with a date and time in the future, or the Cache-Control header with the max-age directive set to a non‑zero value.
By default, NGINX respects other directives in the Cache-Control header: it does not cache responses when the header includes the Private, No-Cache, or No-Store directive. It also doesn’t cache responses with the Set-Cookie header. Further, it only caches responses to GET and HEAD requests. You can override these defaults as described in the answers below.
NGINX does not cache responses if proxy_buffering is set to off. It is on by default.
While there are ways to make this work, it would require modification to all NGINX servers with WPDiscuz installed - that seems unlikely as a solution.
I noted increased PHP response time and cache misses - but I also flushed ALL of my caches, server, Cloudflare and WPDiscuz. So some slowness and misses were expected.
Unfortunately, I will have to disable WPDiscuz again until the set-cookie parameter can be removed from the header or an option to turn that function off is added. Hopefully that will be coming soon.
Best,
Kim