Back to Engineering Blog
Tutorials4 min read

Optimizing Global Asset Delivery with Edge Caching

Strategies for cache invalidation, stale-while-revalidate patterns, and custom header policies for high CDN hit ratios.

Elena Rostova
Elena Rostova
Performance Engineer • Published July 10, 2026

Global latency directly correlates with user conversion rates. In this article, we outline our edge CDN header policies that deliver sub-50ms static asset response times anywhere on earth.

Immutable Static Caching

nginx
location /_next/static/ {
    proxy_pass http://localhost:3000;
    add_header Cache-Control "public, max-age=31536000, immutable";
}

Related Articles

Architecture

Why We Chose Single-Table Design for Our Database

August 2, 20268 min read