webpack 5 chunk load error after every deploy
Legacy app on webpack 5.91, no Vite migration yet. After we deploy, users with the tab open get ChunkLoadError: Loading chunk 412 failed. (error: https://cdn.example.com/js/412.a9f3.js) because we fingerprint filenames and purge old ones. Our index.html is cached at the edge for 5 minutes so it points at chunks that no longer exist. How are people handling this? Retry with a hard reload seems crude.
4 replies