<b>The store re-downloading its own logo daily</b>
A home-goods store served versioned, fingerprinted assets — <code>app.4f2a9.js</code>, <code>logo.8c1d.png</code> — but the CDN respected a CMS-default <code>Cache-Control: max-age=3600</code>. So a fingerprinted file that would literally never change at that URL expired and re-validated against origin every hour, across every edge.
Fingerprinted assets are the textbook case for long TTLs. We set <code>max-age=31536000, immutable</code> on the hashed-asset path. The edge now holds them for a year and never revalidates.
Revalidation requests to origin for static assets dropped 96%. Repeat-visitor load became almost entirely local browser and edge cache — the LCP for returning visitors in Toronto fell from 1.4s to 0.6s. Origin egress for JS and CSS effectively went to zero.
The number that mattered: asset revalidations to origin down 96%.
Edge of Glory
@EdgeOfGloryCDN
<b>The store re-downloading its own logo daily</b>
Этот пост опубликован в Telegram-канале Edge of Glory. Подписаться можно по ссылке: @EdgeOfGloryCDN.