• Resolved maganap

    (@maganap)


    Hello!

    I know this has been asked many times but none of those other posts seem to solve our issue, so I ask again.

    Our Lighthouse report shows these 3 PWA errors:

    Current page does not respond with a 200 when offline
    start_url does not respond with a 200 when offline
    Does not register a service worker that controls page and start_url

    Following other suggestions, what we’ve tried:
    – We’ve changed the start page to a different one from the home page
    – We’ve made sure both images are sized correctly
    – We’ve made sure manifest and js actually load (since it seems it used to be an issue while using nginx). Although they do load, we added the 3 suggested rewrite rules to nginx (we’ve removed them already).
    – We’ve excluded /superpwa* from cache

    Our setup:
    – We’re hosted in a Google Compute Engine instance running Nginx, and behind Google Load Balancer to be able to use the CDN.

    For testing purposes, currently all caches are clean and disabled: CDN, Nginx and just in case a couple of WP plugins.

    Server information and plugins:
    WordPress Version: 5.6
    Current WordPress Theme: GeneratePress version 3.0.2
    Theme Author: Tom Usborne – https://tomusborne.com
    Theme URI: https://generatepress.com
    PHP Version: 7.3.14
    MySQL Version: 8.0.18
    Apache Version: This information is not available.
    Active Plugins:

    a2System Site Plugin for Depaning.fr (Unversioned)
    ACF QuickEdit Fields (3.1.1)
    Advanced Custom Fields (5.9.3)
    AMP (2.0.8)
    AMP Blocks (1.6.3)
    AMP for GeneratePress (0.1)
    Code Snippets (2.14.0)
    Contact Form 7 (5.3.1)
    Contact Form 7 Zoho Pro (1.1.3)
    Contact Form Entries (1.1.6)
    Custom Taxonomy Cleanup (1.0.0)
    Debug Info (1.3.9)
    GenerateBlocks (1.2.0)
    GP Premium (1.10.0)
    LiteSpeed Cache (3.5.2) <=== Only used for serving webp images, not for caching. Temporarily disabled for the tests
    Nginx Cache (1.0.5) <== just to clear nginx cache from UI. Temporarily disabled for the tests
    SecuPress Pro — WordPress Security (1.4.12)
    Show Hide Author (2.2)
    Super Progressive Web Apps (2.1.3)
    Toolset Blocks (1.2.1)
    Toolset Types (3.3.10)
    UpdraftPlus – Backup/Restore (1.16.42)
    WordPress Importer (0.7)
    WP Mail SMTP (2.5.1)
    Yoast Duplicate Post (3.2.6)
    Yoast SEO Premium (15.4)
    Yoast Test Helper (1.11)

    Any ideas what the problem could be are very much appreciated.

    Thanks in advance!

    • This topic was modified 4 years, 3 months ago by maganap. Reason: typo in title
    • This topic was modified 4 years, 3 months ago by maganap.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter maganap

    (@maganap)

    We just noticed that disabling “AMP for WordPress” plugin seems to fix the issue. But I read they’re supposed to be compatible. I hope this gives you a hint of the problem.
    Thanks

    Thread Starter maganap

    (@maganap)

    I’m sorry to say we changed plugins from SuperPWA to PWA for WP (1.7.27), and now the issue is gone.

    AMP plugin was complaining about register-sw.js being invalid, and is was being removed.

    Hope it helps someone else.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lighthouse start_url and service worker problem’ is closed to new replies.