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

closes #474 - add index.html to default ignore list for SWPrecacheWeb… #543

Closed
wants to merge 1 commit into from
Closed

Conversation

osdevisnot
Copy link
Contributor

closes #474 - add index.html to default ignore list for SWPrecacheWebpackPlugin

What kind of change does this PR introduce?
bugfix

Did you add tests for your changes?
yes (appears to be working ok in my local tests)

Summary
as documented in #474 caching index.html causes issues with service worker caching.

Does this PR introduce a breaking change?

Other information

@prateekbh
Copy link
Member

But this still allows it in navigationFallback, so the offline behavior is not broken right?

@lukeed
Copy link
Member

lukeed commented Apr 9, 2018

I believe that offline ability is broken without index.html being saved. Otherwise it won't have anything to serve.

I have a new project open, lemme confirm quickly.

Copy link
Member

@lukeed lukeed left a comment

Choose a reason for hiding this comment

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

Confirmed. Offline does not work if index.html is not precached. 😢

@osdevisnot
Copy link
Contributor Author

my bad, did not test offline mode. let me find out better solution.

@osdevisnot
Copy link
Contributor Author

This works correctly as designed.

@osdevisnot osdevisnot closed this Apr 10, 2018
@osdevisnot osdevisnot deleted the fix-474 branch April 10, 2018 03:05
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.

index.html should be excluded from service worker cache
3 participants