Bootstrapped with create-react-app (v1.0.13). Whenever I update the source & redeploy users need to hard refresh to get the new content. I've included non-cache header in index.html:
<meta http-equiv="Cache-Control" content="no-store" />
& turned off provided service workers. Also change the .js filename (and reference in index.html) in build folder before deploying.
I was able to remove caching by doing the following:
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
import { unregister } from './registerServiceWorker';
unregister()
It is unclear which of these (or all of these) are actually required but it's a start.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With