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.
