Deploy and Pray

Every deploy changes your CSS and JS bundles, and users keep reporting a broken layout for minutes afterward because edges are still serving the previous files. Which approach fixes this most reliably while keeping cache hit ratio high?

A

Send no-cache on the bundles and let the edge revalidate with the origin before it serves every response

B

Give each build content-hashed filenames served with a long max-age and immutable, so a deploy requests new URLs

C

Issue a global purge of the asset paths at the end of every deploy and wait for the invalidation to propagate

D

Set a 60 second max-age on all bundles so the window of staleness after each deploy is tightly bounded