Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes to pwa.yaml require manual cache clearning #145

Open
tacman opened this issue Mar 19, 2024 · 1 comment
Open

changes to pwa.yaml require manual cache clearning #145

tacman opened this issue Mar 19, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@tacman
Copy link
Contributor

tacman commented Mar 19, 2024

Version(s) affected

1.1.x

Description

Changes to config/packages/pwa.yaml are not reflected when refreshing /sw.js unless the cache is manually cleared.

How to reproduce

go to /sw.js
change a regex or something
refresh /sw.js (no changes)
refresh again (changes shown)

Possible Solution

I might be because sw.js is itself cached with a cacheFirst strategy, so the first time it's cached.

Additional Context

No response

@Spomky
Copy link
Member

Spomky commented Mar 19, 2024

Normally, the service worker is not served by the cacheFirst rule.
There is an option to enable/disable the browser cache:https://pwa.spomky-labs.com/the-service-worker/configuration#cache

@Spomky Spomky self-assigned this Mar 21, 2024
@Spomky Spomky added the question Further information is requested label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants