-
Notifications
You must be signed in to change notification settings - Fork 811
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
Pass a new sameOrigin param to matchCallback #2487
Comments
I am having a similar issue. The front end web app is The service worker runs with no complaints. It's just not caching the api as it should:
I believe it is because the api route origin is different than what it is registered to. Any ideas what I can do? |
You can use a
|
In the course of #2486 I realized there are a lot of places where I end up writing
url.origin === self.location.origin && ...
.We could simplify this use case by passing in an additional parameter to the
matchCallback
function,sameOrigin
, that's set to the result of evaluatingurl.origin === self.location.origin
inside of theRouter
.The text was updated successfully, but these errors were encountered: