Skip to content
Preptima
hardDesignCase StudyMidSeniorStaff

Design the asset delivery and deploy strategy for a large single-page app. What happens to a user who has the tab open when you ship?

6 min readUpdated 2026-08-15Target archetype: Big Tech, Enterprise Captive, Product Startup

Answer

Short answer

Cache hashed assets for a year and never cache the entry document, retain several previous builds so a stale tab can still fetch its chunks, and treat a failed dynamic import as the signal to prompt a reload rather than as an error to swallow.

Was this answer helpful?

Likely follow-ups

  • You purge the whole CDN on every deploy. What does that cost you, and what would you do instead?
  • How long do you keep old builds around, and what evidence tells you a build is safe to delete?
  • A shared component library is loaded from a separate host at runtime. What did that buy, and what did it cost?
  • Half your users are on the new bundle and half on the old one, both calling the same API. What has to be true for that to be safe?

Related questions

Further reading