Skip to content
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

feat(gatsby-plugin-offline): Allow precaching custom pages #16877

Merged
merged 50 commits into from
Sep 4, 2019
Merged

feat(gatsby-plugin-offline): Allow precaching custom pages #16877

merged 50 commits into from
Sep 4, 2019

Conversation

vtenfys
Copy link
Contributor

@vtenfys vtenfys commented Aug 21, 2019

Description

Add an option precachePages to gatsby-plugin-offline to allow adding resources for specified pages to the service worker precache.

Related Issues

Closes #16431

Additional Notes

Includes changes of #11626 since the plugin options need to be separated from Workbox options in both PRs, and it's assumed we will merge that one first

@vtenfys vtenfys requested review from a team as code owners August 21, 2019 09:45
@vtenfys
Copy link
Contributor Author

vtenfys commented Aug 21, 2019

getResourcesFromHTML not working properly in tests, looks like I've broken that in some cases with the pathPrefix usage changes

]
```

# <<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a merge issue here?

@sidharthachatterjee sidharthachatterjee added breaking change If implemented, this proposed work would break functionality for older versions of Gatsby status: blocked This issue/PR can't be solved at the moment and shouldn't be closed/merged and removed breaking change If implemented, this proposed work would break functionality for older versions of Gatsby labels Aug 29, 2019
@sidharthachatterjee
Copy link
Contributor

Blocked by #11626

@vtenfys vtenfys removed the status: blocked This issue/PR can't be solved at the moment and shouldn't be closed/merged label Sep 4, 2019
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vtenfys vtenfys merged commit 12b5f75 into gatsbyjs:master Sep 4, 2019
waltercruz pushed a commit to waltercruz/gatsby that referenced this pull request Sep 8, 2019
…16877)

* Allow precaching custom pages rather than just the offline shell
* Document this and add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache all the pages and assets
4 participants