Cache-Control header for served images

I’ve started to evaluate the new Cloudflare Images-offering and use “Flexible Variants”. Works great!

We do have one concern here and this is the cache-control header that is returned to the browser. Its set to 4 hours which means a couple of things:

  1. Google Page Speed will complain making clients sad.
  2. We will be charged for a new request if 4 hours have passed since the last time the vivistor loaded the page.

Is there any way to control the cache-control header being passed to the browser? Google recommends 365 days.

KianNH Thanks a lot! Just tried this out and it works like a charm!

This topic was automatically closed after 15 days. New replies are no longer allowed.