Rankwise logoRankwise
Free audit
PricingCompareResources
Sign inContinue with GoogleStart free trial

Footer

Rankwise

Articles that get you found on Google and named by AI tools, checked every week.

One article a day, written for you

Product

  • Pricing
  • Templates
  • Free blog
  • Developers
  • WordPress guide

Solutions

  • For agencies
  • For in-house SEO
  • For founders
  • Use Cases
  • Integrations
  • Compare
  • Alternatives

Resources

  • Resources
  • Articles
  • Guides
  • Learn
  • Glossary
  • Topics
  • Free tools

Company

  • About
  • Contact

Free tools

SEO Tools

  • AI Overview Checker and Rank Tracker
  • AI Overview Content Score
  • AI Overview Opportunities Finder
  • AI Overview Readiness Score
  • AI Visibility Score
  • Claude Rank Tracker
  • Copilot Rank Tracker
  • Duplicate Titles & Metas Finder
  • E-E-A-T Signals Checker
  • Google Preferred Sources Button
  • Internal Link Finder
  • One-Page SEO Audit Tool
  • Perplexity Rank Tracker
  • Rich Results Checker
  • Search Intent Checker
  • Search Visibility Checker
  • SEO Ranking Report
  • SERP Snippet Preview
  • Topic Gap Checker

Content Tools

  • AI Snippet Extractor
  • AI vs SERP Gap Report
  • Answer Density Analyzer
  • Answer-First Formatting Checker
  • Citation Readiness Score
  • Entity Extractor
  • FAQ Builder
  • FAQ Schema Generator
  • Featured Snippet Optimizer
  • Headline Analyzer
  • Listicle Outline Generator
  • Meta Description Generator
  • Prompt Pack Generator
  • Snippet A/B Generator
  • Sourceability Score
  • Thin Content Detector
  • Title Generator
  • Title Tag Generator
  • YouTube Description Generator for AI Answers
  • YouTube Transcript Page Generator

Technical Tools

  • AI Crawler Checker
  • AI Visibility Checker
  • Broken Links Checker
  • Canonical Tag Validator
  • Facet Index Risk Checker
  • GPTBot Allowlist Tester
  • HTTP Header Checker
  • Indexability Checker
  • Internal Redirects Finder
  • LLM Bot Crawl Checker
  • llms.txt Generator
  • Mixed Content Checker
  • Orphan Pages Finder
  • Redirect Chain Checker
  • Robots.txt Tester
  • Robots.txt Tester for Google and AI Crawlers
  • Schema Markup Generator
  • Site Health Audit
  • Sitemap Validator

Business & ROI Calculators

  • Agency Content Margin Calculator
  • Competitor Content Gap Cost Calculator
  • Content Cost Comparator
  • Content Payback Period Calculator
  • Content ROI Calculator
  • Content Scaling Gap Calculator
  • GEO Readiness Score
  • GEO vs SEO Traffic Risk Estimator
  • Headcount vs Automation Calculator
  • Topical Authority Timeline Calculator
TermsPrivacy

© 2026 Rankwise. All rights reserved. Built by Founder Ventures.

Tracking ChatGPT · Perplexity · Claude · Google AI Overviews
  1. Home
  2. Glossary
  3. Progressive Web App SEO
Technical

Progressive Web App SEO

The practice of optimizing Progressive Web Apps for search engines while maintaining app-like functionality, offline capabilities, and superior performance.

Audit your PWA for SEO

Start here

Quick Answer

  • What it is: The practice of optimizing Progressive Web Apps for search engines while maintaining app-like functionality, offline capabilities, and superior performance.
  • Why it matters: PWAs combine the best of web and mobile apps, but require special SEO considerations for proper indexation and ranking.
  • How to check or improve: Implement server-side rendering, optimize service worker caching, ensure content accessibility without JavaScript, and maintain crawlable URLs.

When you'd use this

PWAs combine the best of web and mobile apps, but require special SEO considerations for proper indexation and ranking.

Example scenario

Hypothetical scenario (not a real company)

A team might use Progressive Web App SEO when Implement server-side rendering, optimize service worker caching, ensure content accessibility without JavaScript, and maintain crawlable URLs.

Common mistakes

  • Confusing Progressive Web App SEO with App Shell Model: A Progressive Web App architecture pattern that separates the static UI shell (header, nav, footer) from dynamic content, enabling instant loads through aggressive caching.

How to measure or implement

  • Implement server-side rendering, optimize service worker caching, ensure content accessibility without JavaScript, and maintain crawlable URLs
Updated Jan 20, 2026·4 min read

On this page

  • Understanding PWA SEO
  • Core PWA Technologies and SEO Impact
  • PWA SEO Challenges
  • Service Worker SEO Strategies
  • SEO-Friendly Service Worker Implementation
  • Cache Management for SEO
  • App Shell Model and SEO
  • SEO-Optimized App Shell Architecture
  • Content Injection with SEO Preservation
  • URL Structure and Routing
  • SEO-Friendly PWA Routing
  • Web App Manifest Optimization
  • SEO-Conscious Manifest Configuration
  • Dynamic Manifest Generation
  • Offline Strategy and SEO
  • SEO-Friendly Offline Pages
  • Background Sync for Content Updates
  • PWA Performance and SEO
  • Core Web Vitals Optimization
  • Testing PWA SEO
  • Comprehensive PWA SEO Testing
  • Frequently Asked Questions
  • Do PWAs rank differently than traditional websites?
  • How do service workers affect crawling?
  • Should I use app shell architecture for content sites?
  • Can PWAs replace mobile apps for SEO?
  • How do I handle offline SEO?

Progressive Web Apps (PWAs) represent the convergence of web and mobile app technologies, offering app-like experiences through web browsers. While PWAs provide superior user experiences with offline functionality, push notifications, and home screen installation, they present unique SEO challenges. Successfully optimizing PWAs for search engines requires balancing app-like functionality with traditional web discoverability, ensuring your content remains crawlable and indexable while delivering cutting-edge performance.

Understanding PWA SEO

Progressive Web App SEO involves optimizing web applications that use modern web capabilities to deliver app-like experiences while maintaining search engine visibility. PWAs combine service workers, web app manifests, and responsive design to create fast, engaging, and reliable web experiences that work offline and can be installed on devices.

Core PWA Technologies and SEO Impact

Service Workers:

  • Enable offline functionality and caching
  • Can interfere with crawling if misconfigured
  • Must be transparent to search engine bots
  • Control network requests and responses

Web App Manifest:

  • Defines app metadata and appearance
  • Influences how PWA appears when installed
  • Doesn't directly impact SEO but affects user experience
  • Controls display mode and orientation

App Shell Architecture:

  • Separates application shell from content
  • Can create crawlability challenges
  • Requires careful implementation for SEO
  • Enables instant loading experiences

PWA SEO Challenges

PWAs face several SEO-specific challenges:

  1. JavaScript dependency: Content often requires JavaScript execution
  2. URL accessibility: App-like navigation may not use traditional URLs
  3. Content discovery: Dynamic loading can hide content from crawlers
  4. Caching conflicts: Aggressive caching may serve outdated content
  5. Mobile-first indexing: PWAs must excel in mobile experience

Service Worker SEO Strategies

SEO-Friendly Service Worker Implementation

// service-worker.js - SEO-optimized configuration
self.addEventListener("install", event => {
  event.waitUntil(
    caches.open("v1").then(cache => {
      // Cache app shell, not content
      return cache.addAll([
        "/",
        "/app-shell.html",
        "/styles/app.css",
        "/scripts/app.js",
        "/offline.html"
      ])
    })
  )
})

self.addEventListener("fetch", event => {
  const { request } = event
  const url = new URL(request.url)

  // Skip service worker for crawlers
  const userAgent = request.headers.get("user-agent") || ""
  const isBot = /googlebot|bingbot|slurp|duckduckbot/i.test(userAgent)

  if (isBot) {
    // Let crawlers fetch fresh content
    event.respondWith(fetch(request))
    return
  }

  // Network-first strategy for HTML (SEO-critical)
  if (request.headers.get("accept").includes("text/html")) {
    event.respondWith(
      fetch(request)
        .then(response => {
          // Cache successful responses
          if (response.ok) {
            const responseClone = response.clone()
            caches.open("content-v1").then(cache => {
              cache.put(request, responseClone)
            })
          }
          return response
        })
        .catch(() => {
          // Fallback to cache, then offline page
          return caches.match(request).then(response => {
            return response || caches.match("/offline.html")
          })
        })
    )
    return
  }

  // Cache-first for assets
  event.respondWith(
    caches.match(request).then(response => {
      return (
        response ||
        fetch(request).then(response => {
          if (response.ok) {
            const responseClone = response.clone()
            caches.open("assets-v1").then(cache => {
              cache.put(request, responseClone)
            })
          }
          return response
        })
      )
    })
  )
})

Cache Management for SEO

// Implement cache versioning and cleanup
const CACHE_VERSION = "v2"
const CACHE_WHITELIST = [CACHE_VERSION]

// Clean old caches
self.addEventListener("activate", event => {
  event.waitUntil(
    caches.keys().then(cacheNames => {
      return Promise.all(
        cacheNames.map(cacheName => {
          if (!CACHE_WHITELIST.includes(cacheName)) {
            console.log("Deleting cache:", cacheName)
            return caches.delete(cacheName)
          }
        })
      )
    })
  )
})

// Cache with expiration
class CacheWithExpiry {
  constructor(cacheName, maxAge = 3600000) {
    // 1 hour default
    this.cacheName = cacheName
    this.maxAge = maxAge
  }

  async put(request, response) {
    const cache = await caches.open(this.cacheName)
    const clonedResponse = response.clone()

    // Add timestamp to response
    const body = await clonedResponse.blob()
    const init = {
      status: clonedResponse.status,
      statusText: clonedResponse.statusText,
      headers: new Headers(clonedResponse.headers)
    }

    init.headers.set("sw-cache-timestamp", Date.now().toString())

    const timestampedResponse = new Response(body, init)
    return cache.put(request, timestampedResponse)
  }

  async match(request) {
    const cache = await caches.open(this.cacheName)
    const response = await cache.match(request)

    if (!response) return null

    const timestamp = response.headers.get("sw-cache-timestamp")
    if (timestamp) {
      const age = Date.now() - parseInt(timestamp)
      if (age > this.maxAge) {
        await cache.delete(request)
        return null
      }
    }

    return response
  }
}

App Shell Model and SEO

SEO-Optimized App Shell Architecture

<!-- app-shell.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Loading...</title>
    <!-- Updated dynamically -->
    <meta name="description" content="Default description" />
    <!-- Updated dynamically -->
    <link rel="canonical" href="https://example.com/" />
    <!-- Updated dynamically -->

    <!-- Critical CSS inline -->
    <style>
      .app-shell {
        /* Minimal shell styles */
      }
      .skeleton {
        /* Loading skeleton styles */
      }
    </style>

    <!-- Preload critical resources -->
    <link rel="preload" href="/api/content" as="fetch" crossorigin />
    <link rel="modulepreload" href="/js/app.js" />
  </head>
  <body>
    <div class="app-shell">
      <header>
        <nav>
          <!-- Static navigation for crawlers -->
          <a href="/">Home</a>
          <a href="/products">Products</a>
          <a href="/about">About</a>
        </nav>
      </header>

      <main id="content">
        <!-- Content injected here -->
        <div class="skeleton">Loading content...</div>
      </main>

      <footer>
        <!-- Static footer for crawlers -->
      </footer>
    </div>

    <script type="module">
      // Progressive enhancement
      import { loadContent, updateMetaTags } from "/js/app.js"

      // Load and inject content
      const path = window.location.pathname
      const content = await loadContent(path)

      if (content) {
        updateMetaTags(content.meta)
        document.getElementById("content").innerHTML = content.html
      }
    </script>

    <!-- Structured data template -->
    <script type="application/ld+json" id="structured-data">
      {
        "@context": "https://schema.org",
        "@type": "WebPage"
      }
    </script>
  </body>
</html>

Content Injection with SEO Preservation

// app.js - Content loading with SEO considerations
export async function loadContent(path) {
  try {
    const response = await fetch(`/api/content${path}`)
    const data = await response.json()

    return {
      html: data.content,
      meta: {
        title: data.title,
        description: data.description,
        canonical: data.canonical,
        schema: data.structuredData
      }
    }
  } catch (error) {
    console.error("Content loading failed:", error)
    return null
  }
}

export function updateMetaTags(meta) {
  // Update title
  document.title = meta.title

  // Update meta description
  let description = document.querySelector('meta[name="description"]')
  if (!description) {
    description = document.createElement("meta")
    description.name = "description"
    document.head.appendChild(description)
  }
  description.content = meta.description

  // Update canonical
  let canonical = document.querySelector('link[rel="canonical"]')
  if (!canonical) {
    canonical = document.createElement("link")
    canonical.rel = "canonical"
    document.head.appendChild(canonical)
  }
  canonical.href = meta.canonical

  // Update structured data
  if (meta.schema) {
    const script = document.getElementById("structured-data")
    script.textContent = JSON.stringify(meta.schema)
  }

  // Update Open Graph tags
  updateOpenGraphTags(meta)
}

function updateOpenGraphTags(meta) {
  const ogTags = {
    "og:title": meta.title,
    "og:description": meta.description,
    "og:url": meta.canonical,
    "og:type": "website"
  }

  Object.entries(ogTags).forEach(([property, content]) => {
    let tag = document.querySelector(`meta[property="${property}"]`)
    if (!tag) {
      tag = document.createElement("meta")
      tag.setAttribute("property", property)
      document.head.appendChild(tag)
    }
    tag.content = content
  })
}

URL Structure and Routing

SEO-Friendly PWA Routing

// router.js - SEO-optimized routing
class SEORouter {
  constructor() {
    this.routes = new Map()
    this.init()
  }

  init() {
    // Listen to navigation events
    window.addEventListener("popstate", this.handleRoute.bind(this))

    // Intercept link clicks
    document.addEventListener("click", e => {
      const link = e.target.closest("a")
      if (link && link.href.startsWith(window.location.origin)) {
        e.preventDefault()
        this.navigate(link.href)
      }
    })
  }

  register(pattern, handler) {
    this.routes.set(pattern, handler)
  }

  navigate(url, options = {}) {
    const { replace = false } = options

    // Update URL
    if (replace) {
      window.history.replaceState({ url }, "", url)
    } else {
      window.history.pushState({ url }, "", url)
    }

    // Handle route
    this.handleRoute()

    // Update analytics
    if (typeof gtag !== "undefined") {
      gtag("config", "GA_MEASUREMENT_ID", {
        page_path: new URL(url).pathname
      })
    }
  }

  async handleRoute() {
    const url = new URL(window.location.href)
    const path = url.pathname

    // Find matching route
    for (const [pattern, handler] of this.routes) {
      const regex = new RegExp(pattern)
      const match = path.match(regex)

      if (match) {
        try {
          await handler(match, url.searchParams)
          this.updateSEOTags(path)
        } catch (error) {
          console.error("Route handling failed:", error)
          this.handle404()
        }
        return
      }
    }

    this.handle404()
  }

  handle404() {
    document.title = "404 - Page Not Found"
    document.getElementById("content").innerHTML = `
      <h1>404 - Page Not Found</h1>
      <p>The page you're looking for doesn't exist.</p>
      <a href="/">Return to homepage</a>
    `

    // Set proper meta tags for 404
    const robots =
      document.querySelector('meta[name="robots"]') ||
      document.createElement("meta")
    robots.name = "robots"
    robots.content = "noindex, follow"
    document.head.appendChild(robots)
  }

  async updateSEOTags(path) {
    // Fetch SEO data for current path
    const seoData = await fetch(`/api/seo${path}`).then(r => r.json())

    // Update tags
    updateMetaTags(seoData)
  }
}

// Usage
const router = new SEORouter()

router.register("^/$", async () => {
  const content = await loadContent("/")
  renderContent(content)
})

router.register("^/products/([^/]+)$", async match => {
  const productSlug = match[1]
  const content = await loadContent(`/products/${productSlug}`)
  renderContent(content)
})

router.register("^/blog/([^/]+)$", async match => {
  const postSlug = match[1]
  const content = await loadContent(`/blog/${postSlug}`)
  renderContent(content)
})

Web App Manifest Optimization

SEO-Conscious Manifest Configuration

{
  "name": "Your PWA - Full Brand Name for SEO",
  "short_name": "YourPWA",
  "description": "Comprehensive description with keywords for app stores and search engines",
  "start_url": "/?utm_source=pwa&utm_medium=homescreen",
  "display": "standalone",
  "background_color": "#ffffff",
  "theme_color": "#000000",
  "orientation": "any",
  "categories": ["business", "productivity"],
  "lang": "en-US",
  "dir": "ltr",
  "scope": "/",
  "icons": [
    {
      "src": "/icon-192.png",
      "sizes": "192x192",
      "type": "image/png",
      "purpose": "any maskable"
    },
    {
      "src": "/icon-512.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ],
  "screenshots": [
    {
      "src": "/screenshot1.png",
      "sizes": "1280x720",
      "type": "image/png",
      "label": "Homepage showing main features"
    }
  ],
  "related_applications": [
    {
      "platform": "play",
      "url": "https://play.google.com/store/apps/details?id=com.example",
      "id": "com.example"
    }
  ],
  "prefer_related_applications": false,
  "shortcuts": [
    {
      "name": "New Post",
      "url": "/new-post?utm_source=shortcut",
      "icons": [{ "src": "/icon-96.png", "sizes": "96x96" }]
    }
  ]
}

Dynamic Manifest Generation

// Generate manifest based on context
app.get("/manifest.json", (req, res) => {
  const userLang = req.headers["accept-language"]?.split(",")[0] || "en"

  const manifest = {
    name: getTranslation("app.name", userLang),
    short_name: getTranslation("app.short_name", userLang),
    description: getTranslation("app.description", userLang),
    start_url: `/?lang=${userLang}&utm_source=pwa`,
    lang: userLang
    // ... other properties
  }

  res.setHeader("Content-Type", "application/manifest+json")
  res.send(JSON.stringify(manifest, null, 2))
})

Offline Strategy and SEO

SEO-Friendly Offline Pages

<!-- offline.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Offline - You're currently offline</title>
    <meta name="robots" content="noindex, follow" />
    <style>
      body {
        font-family: system-ui, sans-serif;
        text-align: center;
        padding: 2rem;
      }
      .offline-content {
        max-width: 600px;
        margin: 0 auto;
      }
      .cached-pages {
        text-align: left;
        margin-top: 2rem;
      }
    </style>
  </head>
  <body>
    <div class="offline-content">
      <h1>You're currently offline</h1>
      <p>Please check your internet connection.</p>

      <div class="cached-pages">
        <h2>Available offline pages:</h2>
        <ul id="cached-pages-list">
          <!-- Dynamically populated -->
        </ul>
      </div>
    </div>

    <script>
      // Show cached pages
      if ("caches" in window) {
        caches.open("content-v1").then(cache => {
          cache.keys().then(requests => {
            const pages = requests
              .filter(req => req.url.includes(".html"))
              .map(req => {
                const url = new URL(req.url)
                return `<li><a href="${url.pathname}">${url.pathname}</a></li>`
              })

            document.getElementById("cached-pages-list").innerHTML =
              pages.join("") || "<li>No cached pages available</li>"
          })
        })
      }
    </script>
  </body>
</html>

Background Sync for Content Updates

// Implement background sync for SEO-fresh content
self.addEventListener("sync", async event => {
  if (event.tag === "content-sync") {
    event.waitUntil(syncContent())
  }
})

async function syncContent() {
  const cache = await caches.open("content-v1")
  const requests = await cache.keys()

  // Update cached content
  for (const request of requests) {
    try {
      const response = await fetch(request)
      if (response.ok) {
        await cache.put(request, response)
        console.log("Updated cache for:", request.url)
      }
    } catch (error) {
      console.error("Sync failed for:", request.url, error)
    }
  }
}

// Register background sync
navigator.serviceWorker.ready.then(registration => {
  registration.sync.register("content-sync")
})

PWA Performance and SEO

Core Web Vitals Optimization

// Optimize PWA for Core Web Vitals
class PWAPerformanceOptimizer {
  constructor() {
    this.initLazyLoading()
    this.optimizeImages()
    this.prefetchCriticalResources()
  }

  initLazyLoading() {
    // Native lazy loading for images
    document.querySelectorAll("img[data-src]").forEach(img => {
      img.loading = "lazy"
      img.src = img.dataset.src
    })

    // Intersection Observer for components
    const componentObserver = new IntersectionObserver(
      entries => {
        entries.forEach(entry => {
          if (entry.isIntersecting) {
            this.loadComponent(entry.target)
            componentObserver.unobserve(entry.target)
          }
        })
      },
      { rootMargin: "50px" }
    )

    document.querySelectorAll("[data-component]").forEach(el => {
      componentObserver.observe(el)
    })
  }

  async loadComponent(element) {
    const componentName = element.dataset.component
    const module = await import(`/components/${componentName}.js`)
    module.default(element)
  }

  optimizeImages() {
    // Serve WebP with fallback
    document.querySelectorAll("picture").forEach(picture => {
      const img = picture.querySelector("img")
      if (!img) return

      const webpSource = document.createElement("source")
      webpSource.type = "image/webp"
      webpSource.srcset = img.src.replace(/\.(jpg|png)$/, ".webp")

      picture.insertBefore(webpSource, img)
    })
  }

  prefetchCriticalResources() {
    // Prefetch likely navigation targets
    const observer = new IntersectionObserver(
      entries => {
        entries.forEach(entry => {
          if (entry.isIntersecting) {
            const link = entry.target
            const href = link.href

            if (href && !this.prefetched.has(href)) {
              const prefetchLink = document.createElement("link")
              prefetchLink.rel = "prefetch"
              prefetchLink.href = href
              document.head.appendChild(prefetchLink)

              this.prefetched.add(href)
            }
          }
        })
      },
      { rootMargin: "0px" }
    )

    document.querySelectorAll("a[href]").forEach(link => {
      observer.observe(link)
    })
  }

  prefetched = new Set()
}

Testing PWA SEO

Comprehensive PWA SEO Testing

// PWA SEO test suite
class PWASEOTester {
  async runTests(url) {
    const results = {
      manifest: await this.testManifest(url),
      serviceWorker: await this.testServiceWorker(url),
      offline: await this.testOfflineCapability(url),
      performance: await this.testPerformance(url),
      seo: await this.testSEOElements(url),
      lighthouse: await this.runLighthouse(url)
    }

    return this.generateReport(results)
  }

  async testManifest(url) {
    const response = await fetch(`${url}/manifest.json`)
    const manifest = await response.json()

    return {
      hasName: !!manifest.name,
      hasShortName: !!manifest.short_name,
      hasStartUrl: !!manifest.start_url,
      hasIcons: manifest.icons?.length > 0,
      hasDisplay: !!manifest.display,
      score: this.calculateManifestScore(manifest)
    }
  }

  async testServiceWorker(url) {
    const page = await puppeteer.launch().newPage()
    await page.goto(url)

    const hasServiceWorker = await page.evaluate(() => {
      return (
        "serviceWorker" in navigator &&
        navigator.serviceWorker.controller !== null
      )
    })

    return {
      registered: hasServiceWorker,
      scope: await this.getServiceWorkerScope(page),
      cacheStrategy: await this.analyzeCacheStrategy(page)
    }
  }

  async testSEOElements(url) {
    const page = await puppeteer.launch().newPage()

    // Test without JavaScript
    await page.setJavaScriptEnabled(false)
    await page.goto(url)

    const withoutJS = {
      title: await page.title(),
      description: await page
        .$eval('meta[name="description"]', el => el.content)
        .catch(() => null),
      h1: await page.$eval("h1", el => el.textContent).catch(() => null),
      canonical: await page
        .$eval('link[rel="canonical"]', el => el.href)
        .catch(() => null)
    }

    // Test with JavaScript
    await page.setJavaScriptEnabled(true)
    await page.goto(url, { waitUntil: "networkidle0" })

    const withJS = {
      title: await page.title(),
      description: await page
        .$eval('meta[name="description"]', el => el.content)
        .catch(() => null),
      h1: await page.$eval("h1", el => el.textContent).catch(() => null),
      canonical: await page
        .$eval('link[rel="canonical"]', el => el.href)
        .catch(() => null)
    }

    return {
      withoutJS,
      withJS,
      javascriptRequired: JSON.stringify(withoutJS) !== JSON.stringify(withJS)
    }
  }

  async runLighthouse(url) {
    const { lighthouse } = await import("lighthouse")
    const chrome = await import("chrome-launcher")

    const chromeLauncher = await chrome.launch({ chromeFlags: ["--headless"] })
    const options = {
      logLevel: "info",
      output: "json",
      port: chromeLauncher.port,
      onlyCategories: ["performance", "pwa", "seo", "accessibility"]
    }

    const runnerResult = await lighthouse(url, options)
    await chromeLauncher.kill()

    return {
      pwa: runnerResult.lhr.categories.pwa.score * 100,
      seo: runnerResult.lhr.categories.seo.score * 100,
      performance: runnerResult.lhr.categories.performance.score * 100,
      accessibility: runnerResult.lhr.categories.accessibility.score * 100
    }
  }
}

Frequently Asked Questions

Do PWAs rank differently than traditional websites?

PWAs don't inherently rank differently, but their performance characteristics often lead to better rankings. PWAs typically have:

  • Superior Core Web Vitals scores
  • Better mobile experience
  • Faster load times
  • Higher engagement metrics

These factors contribute to improved rankings, not the PWA technology itself.

How do service workers affect crawling?

Service workers can affect crawling if misconfigured. Best practices:

  • Bypass service workers for known bots
  • Use network-first strategy for HTML
  • Don't cache error pages as success responses
  • Implement proper cache expiration

Google can execute service workers, but it's safer to provide crawler-accessible content without service worker dependency.

Should I use app shell architecture for content sites?

App shell works well for application-like sites but requires careful implementation for content sites:

  • Use app shell for: Navigation, headers, footers
  • Don't use for: Main content, SEO-critical elements
  • Hybrid approach: Static shell + dynamic content injection
  • Always provide: Server-rendered content fallback

Can PWAs replace mobile apps for SEO?

PWAs can complement or replace mobile apps, with SEO advantages:

  • PWA advantages: Searchable, linkable, no app store
  • Mobile app advantages: App store presence, platform features
  • Best approach: PWA for web presence, native app for app stores
  • Consider app streaming or instant apps as alternatives

How do I handle offline SEO?

Offline functionality doesn't directly impact SEO but affects user experience:

  • Show clear offline messages
  • Cache important pages for offline access
  • Provide offline navigation options
  • Use background sync to update content
  • Never cache 404s or errors as successful responses

The key is ensuring offline experiences don't negatively impact online SEO signals.

Learn More

/resources/learn/pwa-basics/resources/guides/service-worker-seo/tools/pwa-lighthouse-test

Explore Next

GuideTemplateUse case

Related Terms

App Shell Model

Technical

A Progressive Web App architecture pattern that separates the static UI shell (header, nav, footer) from dynamic content, enabling instant loads through aggressive caching.

Prerequisites

App Shell ModelA Progressive Web App architecture pattern that separates the static UI shell (header, nav, footer) from dynamic content, enabling instant loads through aggressive caching.

See also

First Input Delay (FID)A Core Web Vitals metric that measures the time from when a user first interacts with a page to the time when the browser is able to begin processing event handlers in response.ChatGPT SearchOpenAI's web search feature integrated into ChatGPT that allows the AI to browse the internet in real-time to provide current information and cite sources. Learn how SearchGPT works and how to optimize for it.Entity SEOAn optimization approach focused on establishing clear entity relationships and helping search engines understand what your content and brand represent in the knowledge graph.JavaScript SEOThe practice of optimizing JavaScript-heavy websites for search engine crawling and indexing, ensuring dynamic content is discoverable and properly rendered.

Next steps

GuideTemplate

Put GEO into practice

Generate AI-optimized content that gets cited.

Try Rankwise Free
Newsletter

Stay ahead of AI search

Weekly insights on GEO and content optimization.