score:0

for anyone coming in the future -- all you need is the

{unregister} from ./registerserviceworker

unregister();

this helped my create-react-app work with hosts like gh-pages and netlify.

score:2

i was able to remove caching by doing the following:

  • adding the following to in index.html <meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="expires" content="0" />
  • inserting the following to the js import { unregister } from './registerserviceworker'; unregister()
  • changing cloudflare caching expiration to 'respect existing headers' at https://www.cloudflare.com/a/caching/

it is unclear which of these (or all of these) are actually required but it's a start.


Related Query

More Query from same tag