Material-ui: Safari Service Worker Problems

Created on 24 Oct 2018  路  5Comments  路  Source: mui-org/material-ui

  • [x] This is not a v0.x issue.
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior


Navigating around the https://material-ui.com/ site should work on Safari.

Current Behavior


Unrecoverable error after navigating and refreshing on some pages.

Workaround/Fix?

See original post for possible fix via Workbox upgrade: https://github.com/GoogleChrome/workbox/issues/1730

bug 馃悰 docs important

All 5 comments

This is iOS 12 Safari bug.

See this: https://github.com/PWA-POLICE/pwa-bugs#problem--in-ios-12-cache-in-cache-storage-magically-disappears
And this: https://bugs.webkit.org/show_bug.cgi?id=190269

(It isn't fixed in 12.0.1)

Thanks, but I haven't tested this on iOS Safari; this was found on macOS Safari.

We can start by upgrading the version of workbox: https://github.com/mui-org/material-ui/blob/a74ce52105039369c8b320fdbd8aeb977c2928ee/docs/src/sw.js#L4

@msiadak Do you have some experience with the latest version of workbox?

I don't, but I'm happy to take a look and work through the breaking changes since 3.0.0-beta.0 to try and find an upgrade path.

@msiadak Men, this would be awesome!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chris-hinds picture chris-hinds  路  3Comments

pola88 picture pola88  路  3Comments

FranBran picture FranBran  路  3Comments

ericraffin picture ericraffin  路  3Comments

finaiized picture finaiized  路  3Comments