Skip to content

Commit 7097d5c

Browse files
karolklppaulirish
authored andcommitted
Clarification of hasOfflineStartUrl rule (#2775)
* Clarification of hasOfflineStartUrl rule Error message is confusing for some users (https://stackoverflow.com/questions/45330087/manifest-start-url-is-not-cached-by-a-service-worker) and technically it's not true. There's check if the start_url is returned, and if not the message that it's not cached is returned. There's possibility for service worker to cache it but not return it and receive this error message. * Adjusted wording
1 parent 0455283 commit 7097d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lighthouse-core/audits/webapp-install-banner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class WebappInstallBanner extends MultiCheckAudit {
8181
const hasOfflineStartUrl = artifacts.StartUrl.statusCode === 200;
8282

8383
if (!hasOfflineStartUrl) {
84-
result.failures.push('Manifest start_url is not cached by a service worker');
84+
result.failures.push('Service worker does not successfully serve the manifest\'s start_url');
8585
}
8686

8787
if (artifacts.StartUrl.debugString) {

0 commit comments

Comments
 (0)