-
Notifications
You must be signed in to change notification settings - Fork 0
cache offline page #133
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
Merged
Merged
cache offline page #133
Changes from 32 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5a7272f
create initial `offline.html`
DevlinRocha 702f7a2
add `/offline.html` to `routesToCache`
DevlinRocha d6e2ef0
return cached offline page
DevlinRocha 8eb35fb
improve offline page
DevlinRocha f7172b7
Merge branch 'main' into staging
DevlinRocha 336753a
wrap offline page in response
DevlinRocha cb8fc49
fix usage of cache
DevlinRocha 5a1e5b7
embed HTML in service worker
DevlinRocha d4595c1
temporarily include page in allowed origins
DevlinRocha 0c8e93f
return cached offline page
DevlinRocha 5af99d4
wrap offline in response
DevlinRocha f4bc9aa
convert response to text
DevlinRocha 7339c78
use `await`
DevlinRocha 73c5e89
move `offline.html`
DevlinRocha 4995f8f
fix cached offline page
DevlinRocha 77756b0
move `offline.html`
DevlinRocha b271099
add html tags
DevlinRocha 1edf61f
set `charset=UTF-8`
DevlinRocha 8384e06
adjust `offline.html` output
DevlinRocha 6fb1d7d
lowercase utf
DevlinRocha 5c78902
update `vite` to version `6.2.4`
DevlinRocha 0f67625
remove wrapping tags
DevlinRocha 90cb975
don't copy `offline.html` to `dist` directory
DevlinRocha 82dd119
remove `charset=utf-8`
DevlinRocha 2ad5c13
remove offline cache from service worker
DevlinRocha 04dd410
fetch and cache offline page during service worker install
DevlinRocha a660c52
take in a `message` to display
DevlinRocha 6ab8463
use custom not found messages
DevlinRocha 30157f7
remove cached offline page
DevlinRocha 291e49a
send response when network is offline
DevlinRocha 41015a4
fix typecheck error
DevlinRocha a4eb62b
send `undefined` response
DevlinRocha da05704
`throw notFound()`
DevlinRocha b2a88a6
respond with `offline`
DevlinRocha e24728b
respond with `offlineBody` from cache
DevlinRocha 74b697e
cache offline response
DevlinRocha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.