Bug 183800

Summary: trivago.com doesn't work offline
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Service WorkersAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: beidson, cdumez, davidmaxwaterman, mjs, tomac, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ryosuke Niwa 2018-03-20 15:49:57 PDT
Continuing https://bugs.webkit.org/show_bug.cgi?id=182070,
trivago.com doesn't work after being saved on home screen.
Comment 1 Radar WebKit Bug Importer 2018-03-20 15:50:47 PDT
<rdar://problem/38683689>
Comment 2 Chris Dumez 2018-05-02 13:54:32 PDT
trivago.com does not work offline even in MobileSafari. I do not think this is an issue specific to Web.app. I see the service worker install / activation being successful. However, the service worker does not handle the main resource load for some reason.
Comment 3 youenn fablet 2019-09-06 05:54:23 PDT
Tested on a recent build and trivago.com redirects me to trivago.fr which is working offline in mobile Safari. When saved on home screen, it opens in Safari not web.app.
Resolving to configuration changed.
Comment 4 Thomas Steiner 2019-09-06 06:03:17 PDT
(In reply to youenn fablet from comment #3)
> Tested on a recent build and trivago.com redirects me to trivago.fr which is
> working offline in mobile Safari. When saved on home screen, it opens in
> Safari not web.app.
> Resolving to configuration changed.

Interesting, while offline works, it should still run in standalone mode in web.app (and does in my quick tests). Also the manifest support this:

curl 'https://www.trivago.fr/manifest.webmanifest' -H 'user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1' | grep display