DEV Community

luisalguien
luisalguien

Posted on

2

CRA default service worker issue

I've been working on a PWA which was created with creact-react-app and I'm using the default service worker which uses workbox to cache assets and serve them and the site works fine for some time, but after a period of time the site becomes unreachable until I close the tab and open a new one, or after I clear the service worker storage or after I do a hard refresh, I would like to avoid having that issue. Has anyone had this issue before? I'm new to service workers, haven't used one before, any help and thoughts would be appreciated. Thanks!

Top comments (2)

Collapse
 
jameshubert_com profile image
James Hubert

Hey Luisa! This really seems like a great question for StackOverflow. Have you already asked there?

Collapse
 
luisalguien profile image
luisalguien

I've already asked on stackoverflow, but I haven't got a response as of now. :(

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay