-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Fix RegExp from navigateFallbackBlacklist (workbox) #7176
Fix RegExp from navigateFallbackBlacklist (workbox) #7176
Conversation
cc @jeffposnick |
I did some digging into the history to refresh my memory. Here's the underlying issue that led to that configuration being used: #3008 Given that there's no easy way to enable/disable/override the default Workbox configuration options, I'd imagine that the conclusion about the most reasonable sett of defaults expressed in #3008 still apply, and just dropping the RegExp entirely is likely to cause issues. If a modification to the RegExp so that it only matched on |
Gotcha! I will just modify the regexp then. Thanks for the additional context. |
a990103
to
a51eff5
Compare
Fixed. Let me know if you have any additional concerns. |
Exclude URLs that contains a "?" character.
a51eff5
to
901636b
Compare
👍 from my point of view. |
Cool, many thanks for the review! |
👀 👋 I guess it's safe to merge? |
Thanks! |
Cool thank you! |
Hello,
This lovely RegExp was preventing my
index.html
to be served from ServiceWorker after an authentication callback; the request always hit the network…Here is an example of this kind of "auth requests" callback:
https://example.com/PWA/callback?code=a55b99fbe42a3a7663b344020d2407047f4eb206aded15c300568ca4ef1219ce&scope=openid%20profile%20organizations%20api1%20offline_access&state=12c7c99a9b75476545161b45302e2cd&session_state=_p1MWLryvh08qxT-gmvucCIFVsWh8rIwo_MUBjhjvyY.5f6ee222da987db8c21aa4a35f93ada
The problem was that it was blacklisted by workbox because… it contains a
.
! 😟I believe it would be just safer to remove it… I hope this will prevent fellow devs opting in for SW wasting a lot of time like I did to found out! 😅
Thanks!