Uh oh!
There was an error while loading. Please reload this page.
Fix RegExp from navigateFallbackBlacklist (workbox) - #7176
Conversation
Timer
commented
Jun 6, 2019
cc @jeffposnick |
jeffposnick
commented
Jun 6, 2019
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 |
nuragic
commented
Jun 6, 2019
Gotcha! I will just modify the regexp then. Thanks for the additional context. |
a990103 to
a51eff5Comparenuragic
commented
Jun 7, 2019
Fixed. Let me know if you have any additional concerns. |
Uh oh!
There was an error while loading. Please reload this page.
Exclude URLs that contains a "?" character.
a51eff5 to
901636bComparejeffposnick
commented
Jun 10, 2019
👍 from my point of view. |
nuragic
commented
Jun 10, 2019
Cool, many thanks for the review! |
nuragic
commented
Jun 18, 2019
👀 👋 I guess it's safe to merge? |
iansu
commented
Aug 8, 2019
Thanks! |
nuragic
commented
Aug 8, 2019
Cool thank you! |
Hello,
This lovely RegExp was preventing my
index.htmlto 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.5f6ee222da987db8c21aa4a35f93adaThe 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!