Skip to content

PreCache config with nextJS when go offline broken and throw err_fail #194

Closed Answered by DuCanhGH
benyaminl asked this question in Q&A
Discussion options

You must be logged in to vote

@benyaminl

Sorry for not replying. I was on a break, so I didn't feel much like replying to questions :(

This was actually a bug caused by navigation preloading being enabled. When you are offline, await event.preloadResponse rejects, causing the matched strategy to fail to return a response, despite there being a (pre)cached one.

In the next patch, we will catch such errors.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@benyaminl
Comment options

@DuCanhGH
Comment options

Answer selected by benyaminl
@benyaminl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants