works-offline: false positive for photopea.com
See original GitHub issueProvide the steps to reproduce
- Run LH on https://www.photopea.com/
What is the current result?
works offline
What is the expected result?
does not work offline.
This can be seen if you go offline manually and load the page, or just look at the SW (nothing is cached).
Lighthouse instead reports that the page does work offline. The check is working correctly from Lighthouse’s perspective (or at least from the offline
gatherer’s perspective). You can see that the page loads, and if you look at the network record it’s inspecting:
Main Network Record
{
"requestId": "8267C81B408AEA0D7BC17077050D81BF",
"connectionId": "0",
"connectionReused": false,
"url": "https://www.photopea.com/",
"protocol": "http/1.1",
"isSecure": true,
"isValid": true,
"parsedURL": {
"scheme": "https",
"host": "www.photopea.com",
"securityOrigin": "https://www.photopea.com"
},
"documentURL": "https://www.photopea.com/",
"startTime": 1384312.160637,
"endTime": 1384312.333087,
"responseReceivedTime": 1384312.3328230001,
"transferSize": 0,
"resourceSize": 7250,
"fromDiskCache": false,
"fromMemoryCache": false,
"finished": true,
"requestMethod": "GET",
"statusCode": 200,
"failed": false,
"localizedFailDescription": "",
"initiator": {
"type": "other"
},
"timing": {
"requestTime": 1384312.160637,
"proxyStart": -1,
"proxyEnd": -1,
"dnsStart": -1,
"dnsEnd": -1,
"connectStart": -1,
"connectEnd": -1,
"sslStart": -1,
"sslEnd": -1,
"workerStart": -1,
"workerReady": -1,
"sendStart": 1.579,
"sendEnd": 1.579,
"pushStart": 0,
"pushEnd": 0,
"receiveHeadersEnd": 172.186
},
"resourceType": "Document",
"mimeType": "text/html",
"priority": "VeryHigh",
"responseHeaders": [
{
"name": "Accept-Ranges",
"value": "bytes"
},
{
"name": "Cache-Control",
"value": "max-age=60"
},
{
"name": "Content-Encoding",
"value": "gzip"
},
{
"name": "Content-Length",
"value": "2908"
},
{
"name": "Content-Type",
"value": "text/html; charset=utf-8"
},
{
"name": "Date",
"value": "Wed, 07 Nov 2018 19:26:10 GMT"
},
{
"name": "ETag",
"value": "\"38193c-1c52-579d7e52da39a\""
},
{
"name": "Expires",
"value": "Wed, 07 Nov 2018 19:27:10 GMT"
},
{
"name": "Last-Modified",
"value": "Sun, 04 Nov 2018 14:50:53 GMT"
},
{
"name": "Server",
"value": "Apache"
},
{
"name": "Vary",
"value": "Accept-Encoding,User-Agent"
}
],
"responseHeadersText": "",
"fetchedViaServiceWorker": true,
"frameId": "D9A2A740C7E7226949F579341841EEB9",
"isLinkPreload": false
}
The url matches, statusCode
is 200, and fetchedViaServiceWorker
is true (and fromDiskCache
and fromMemoryCache
are false, to boot).
However, adding a breakpoint there and connecting to the chrome being tested, there’s still nothing in the cache and the sw is throwing errors.
So where is that record coming from?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Photopea | Online Photo Editor
Free online editor supporting PSD, XCF, Sketch, XD and CDR formats. (Adobe Photoshop, GIMP, Sketch App, Adobe XD, CorelDRAW). Create a new image...
Read more >Photopea: A free Photoshop alternative making millions
Photopea is web-based, but it also is completely built using Javascript with no backend. This means it works offline with no internet ...
Read more >5 Free and Modern Online Image Editors to Replace Clunky ...
The app also works offline once you've opened it, and has a mobile version too. ... So, go ahead and try these ,...
Read more >Switching to Chromebook 15 Apps and Extensions to Replace ...
The app works offline and has support for various keyboard shortcuts. ... on your Chromebook, Photopea is a great alternative for editing your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m running into the same issue. I created a small project to help reproduce the issue, if that’s useful at all. 😄
Confirmed this case is now properly detected in LH 7.0 after the changes to PWA installability detection.
Thanks so much for the super-easy-to-use repro case, @cdegit!