Cloudflare is overriding may TTl cache

Hello,
I set, using my htaccess, expiring headers for assets with TTL 1 year. But If I scan the website with Gtmetrix, they are set to 4 hours.
I use Cloudflare free account for which there i snot cache control. So ether Cloudflare is overriding ny values, or my original server does not send cache-control or expires headers as described here.


My hosting support says that there is not such a control, and must be a Cloudflare issue.
Thank you for help!

Yes. Cloudflare is overriding the cache TTL for 4 hours by default.

Head over to Cloudflare dashboard - Caching tab - Configuration - Browser Cache TTL, and change the setting to Respect Existing Headers.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.