A single-page application (SPA) needs to be refreshed after deployment to present the user with the new content. The importance of this is often not realised – or, if it is, it's implemented with long polling. A more efficient method for refreshing an SPA is to piggyback off your existing API calls.
Using a CloudFront API Proxy to Invalidate a Single-Page Application Without Polling
Read article