Is DO LoadBalancer adding `cache-control: private` header when using sticky sessions?

Posted January 7, 2022 78 views
Load Balancing

I’m currently using sticky sessions with DO LoadBalancer and found that there is cache-control: private header added to the end of response headers which is breaking my caching policies:

set-cookie: XXXX=node-XXX|XXX|XXX; path=/; SameSite=Lax
cache-control: private

Maybe that’s not related to sticky sessions but I would like to get rid of that header. I’ve tried removing several upstream headers and also adding explicit cache-control and expires headers but no luck.

Is there a config option for that or something I can do myself?

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!