Hello, I want to know that for days, I think I remember wrong, I thought that this was a problem and my files were not cached. As far as I know, when a file is served from Cloudflare cdn, when source controlled the url is:
EXPIRED The resource was found in Cloudflare’s cache but was expired and served from the origin web server.
The item was in Cloudflare’s cache, but the cache time expired and was then served from your origin. You can increase the cache time from your origin server
BYPASS The origin server instructed Cloudflare to bypass cache via a Cache-Control header set to no-cache,private, or max-age=0 even though Cloudflare originally preferred to cache the asset. BYPASS is returned when enabling Origin Cache-Control. Cloudflare also sets BYPASS when your origin web server sends cookies in the response header.
Ideally yes, it’d be the best way to fix cache headers. If you were to ever remove the domain from behind Cloudflare, or pause the proxying, it would continue caching content as expected on users’ devices.
I know it’s a broad topic. Can you explain in a few sentences how I can fix this on my Linux/Whm/Cpanel server? Maybe I can figure it out if you at least tell me what to look for in search engines to fix this?