I'm setting up a reverse proxy (nginx) to offload some processing off apache, but it would not cache any php responses. So I looked into it and found these headers set:
Cache-Control no-cache, must-revalidate, max-age=0 Pragma no-cache
These headers prevent nginx from caching any PHP responses, and after disabling all my plugins one by one, I narrowed it down to this plugin, and specifically a call to session_start().
Why is this function being called at all? Can it be removed?
If not, this workaround overrides no-cache:
ini_set('session.cache_limiter', 'private'); at some point before session_start().
Can this be fixed please?