Suman Kunwar
1 min readAug 10, 2018

--

Thank you glenn wolfe for pointing it out. Yes, your solution works fine too. I did face that problem. In production environment, create-react-app enables the service worker which gets cached in the cloudfront.

In order to get latest deployed files, we have either to disable service worker or invalidate it from CloudFront.

So later i develop a library https://www.npmjs.com/package/react-deploy-cli which does take care of it.

--

--

Suman Kunwar
Suman Kunwar

Written by Suman Kunwar

Innovating Sustainability | Researcher | Author of Learn JavaScript : Beginners Edition

Responses (1)