Hi everyone,
I’m having a bit of trouble hosting a small dynamic php site behind caddy and I’m not sure whether it’s related to caching, headers, or how caddy handles reverse proxies.
The site pulls in live data and updates frequently, similar to how pages on the telenor educational quiz are expected to refresh when new questions or results are published. When I run it directly on apache everything behaves as expected, but when I put caddy in front of it, some pages seem to get cached or served in a way that causes outdated content or missing updates.
Sometimes users see old data even after a refresh, and in a few cases certain ajax requests stop updating unless the cache is manually cleared. I’m also seeing differences in response headers between direct access and when traffic goes through caddy.
I’d really like to understand how caddy handles dynamic php sites, especially when it comes to caching, compression, and reverse proxy behavior. Is there a recommended way to make sure frequently changing content isn’t cached or altered unexpectedly?
Any guidance from people who have run similar setups would be appreciated.