Hi Netlify Support,
I am struggling with high bandwidth usage on my site https://otevrenazahrada.cz/ due to Netlify Image CDN forcing max-age=0 on all transformed images, which prevents browser caching.
Project Setup:
-
Framework: Astro (SSR mode) with
@astrojs/netlifyadapter. -
Component: Using Astro’s
<Image />component. -
Image Source: Remote CMS (Kentico) configured in
astro.config.mjs.
The Issue: My origin server (CMS) correctly sends the following header for the source images: cache-control: public, max-age=3600, must-revalidate Example origin URL: https://kentico.otevrenazahrada.cz/…/oz-aerial-(1).webp
However, the response from Netlify Image CDN changes this to: cache-control: public, max-age=0, must-revalidate Example CDN URL: https://otevrenazahrada.cz/.netlify/images?url=https%3A%2F%2Fkentico…
Goal: I need the browser to cache images (at least for 1 hour) to reduce redundant requests and save egress bandwidth.
Thank you for your help!