AWS Mar 23, 2021

CDN Caching Improvements for Better App Performance

Article Summary

AWS Amplify just shipped CDN caching improvements that delivered a 98% reduction in response times for static assets. Cookie handling was the culprit.

AWS Amplify Hosting rolled out major caching optimizations that fundamentally change how cookies interact with CDN cache keys. The team also enabled Brotli compression, added CloudFront header forwarding, and unlocked Next.js i18n support natively.

Key Takeaways

Critical Insight

By excluding Google Analytics cookies from cache keys, Amplify reduced p95 response times by 98% and pushed cache hit rates above 99%.

The article includes specific cache policy tables showing exactly what gets cached and for how long across static, SSR, and image optimization content.

Recent from AWS

Related Articles