Cache directives on LMS Transforms

Hello, I’ve been noticing images via LMS transforms load fairly slowly quite often.

I’m trying to leverage Cloudflare on top of Netlify to see if I can see any difference in CDN performance but seem to be hitting a roadblock as all LMS hits always return “public, max-age=0, must-revalidate”

My netlify.toml has

  for = "/*.jpg*"
	cache-control = '''

I should note, my directives for css/js/png/jpg etc… when not running through transforms work fine.

Hi, @hecktarzuli, this is a limitation of Large Media and we have an open issues to both address this and to get this limitation added to our documentation.

If you want to set custom headers for images, then it won’t be possible to use Large Media for those images.

We’ll update this topic if/when either and/or both the two issues mentioned above are known to be resolved. If there are other questions about this, please let us know.