Gautam Chaudhary
Nov 3 · 1 min read

Do you serve them from a different CDN domain or from the same domain as the website?

I usually push the build assets to a S3 bucket as part of the docker image build process, where they coexist with previous build files, with each file containing a hash within the file name. Since the CDN points to this S3 bucket, it’s always able to fetch the requested asset, irrespective of whether the request came from an old or new deployment.

Gautam Chaudhary

Written by

Dreamer. Tech Enthusiast. Full Stack Developer. Open Source Lover | Node.js, React, Django, Android, Docker, Kubernetes | Former Product Engineer at Toppr.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade