A progressive web app (PWA) is a website that behaves like an installed app: it works offline, loads instantly on repeat visits, can be added to a phone's home screen and can send notifications. PWAs are usually built with JavaScript frameworks such as React, Angular or Vue, and that is where SEO problems start. If the content only appears after JavaScript runs in the browser, or if every screen shares one URL, search engines may index little or nothing. This guide explains how to keep a PWA fully searchable.

What makes PWAs tricky for SEO

  • Client-side rendering: the server sends a nearly empty HTML shell and JavaScript builds the page. Google can render JavaScript, but it takes extra time and resources, other search engines and AI crawlers often do not render at all, and errors in scripts can leave pages blank.
  • App-style navigation: screens that change without changing the URL, or that use hash fragments (/#/products), cannot be indexed as separate pages.
  • Metadata set too late: titles, descriptions and canonical tags added by JavaScript after load may be missed or inconsistent.
  • Service worker caching: aggressive caching can serve stale content or break when crawlers request pages.

1. Choose a rendering strategy that sends real HTML

StrategyHow it worksSEO verdict
Server-side rendering (SSR)The server builds the full HTML for each request; JavaScript then makes it interactive (hydration)Excellent for frequently changing content
Static generation / pre-renderingHTML is built ahead of time for each routeExcellent for content that changes less often
HybridStatic for most pages, server-rendered for dynamic onesOften the best balance
Client-side rendering onlyBrowser builds everythingRisky; avoid for pages you want to rank

Modern frameworks support SSR and static generation directly: Next.js and Remix for React, Nuxt for Vue, Angular's built-in SSR and pre-rendering, SvelteKit for Svelte. Google no longer recommends "dynamic rendering" (serving bots a different version) as a long-term solution.

2. Give every view its own URL

  • Use the History API for clean paths: /products/winter-jacket, not /#/product?id=42.
  • Every URL should load directly when typed or shared, returning the right content and a 200 status.
  • Unknown URLs should return a real 404 status, not the app shell with a "not found" message. Soft 404s are one of the most common PWA problems.

3. Use real links

Navigation should use <a href="/path"> elements. Google discovers pages by following links in the HTML; elements that navigate only through click handlers may never be crawled. Framework routing components (such as React Router's Link or Angular's routerLink on an anchor) output proper links.

4. Render metadata on the server

Each route needs its own title, meta description, canonical tag, robots directive, Open Graph tags and structured data in the server-rendered HTML. Check that client-side navigation updates them too, and that hydration does not overwrite them with generic values.

5. Handle the service worker carefully

  • Googlebot does not use your service worker or its cache, so the network response must be complete on its own.
  • Use network-first or stale-while-revalidate strategies for content pages, so users and crawlers get fresh content.
  • Version your caches and clear old ones on update.
  • Do not let an offline fallback page replace real error responses.

6. Keep performance in check

PWAs can be extremely fast on repeat visits, but the first visit, which is what search visitors experience, is often heavy. Watch the JavaScript bundle size, split code by route, defer non-essential scripts and monitor Core Web Vitals, especially Interaction to Next Paint, which suffers when hydration keeps the browser busy.

7. Do not block resources Google needs

Make sure robots.txt allows the JavaScript, CSS and API endpoints required to render pages. If Google cannot fetch them, it cannot see your content.

How to test your PWA

  1. View source (not the inspector) for key pages: is the main content and metadata in the initial HTML?
  2. URL Inspection live test in Search Console: check the rendered HTML and screenshot, and look for blocked resources.
  3. Disable JavaScript in your browser: is the page still readable?
  4. Crawl with JavaScript rendering in Screaming Frog and compare with a non-rendered crawl.
  5. Request a nonsense URL and confirm it returns a 404 status code.

The manifest and installability

The web app manifest (name, icons, theme colour, start URL) controls how your PWA installs. It does not affect rankings, but a correct manifest and HTTPS are required for installation prompts, and a good install experience improves engagement from returning visitors.

Frequently asked questions

Can Google index a client-side rendered PWA?

Often, yes, but rendering is delayed and less reliable, and other search engines and AI crawlers may see nothing. Server-side rendering or pre-rendering removes the risk.

Is a PWA better for SEO than a normal website?

Not inherently. A well-built PWA can rank as well as any site; the app features help users, not rankings.

Do I need a separate app store listing?

No, PWAs install from the browser. You can also package one for app stores if that suits your audience. See SEO for mobile apps.

Building or fixing a JavaScript site?

Our React and Angular development team builds SEO-ready apps with server-side rendering. Start with a free SEO audit of your current site.

Written by

Rajesh Kumar

Digital marketing expert helping businesses grow online through SEO and strategic content.

All Articles