You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pretty much universally throughout our docs and samples, we end up using RegExps for routing.
In retrospect, this ends up being fairly confusing and error prone, especially since we have to explain the nuances around cross-origin RegExp routing.
We should audit the current examples in the docs and when it makes sense to switch to a simple matchCallback, do so.
E.g.
registerRoute(
/^https:\/\/fonts\.googleapis\.com/,
new StaleWhileRevalidate({
cacheName: 'google-fonts-stylesheets',
})
);
Pretty much universally throughout our docs and samples, we end up using
RegExp
s for routing.In retrospect, this ends up being fairly confusing and error prone, especially since we have to explain the nuances around cross-origin
RegExp
routing.We should audit the current examples in the docs and when it makes sense to switch to a simple
matchCallback
, do so.E.g.
makes much more sense as
The text was updated successfully, but these errors were encountered: