What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 3 questions

Less than 30 seconds. Find out how much you really know about Google search.

🕒 ~30s 🎯 3 questions 📚 SEO Google

Official statement

It is technically acceptable to redirect only Googlebot to the www domain while keeping users on the non-www version to avoid CORB errors caused by a service worker. However, Martin recommends fixing the root cause (the service worker making requests to the wrong domain) rather than applying a workaround, as that can complicate future debugging.
6:47
🎥 Source video

Extracted from a Google Search Central video

⏱ 28:49 💬 EN 📅 01/07/2020 ✂ 23 statements
Watch on YouTube (6:47) →
Other statements from this video 22
  1. 0:33 Pourquoi Googlebot ignore-t-il vos cookies et comment adapter votre stratégie de contenu personnalisé ?
  2. 1:02 Googlebot crawle-t-il avec les cookies activés ou ignore-t-il votre contenu personnalisé ?
  3. 1:02 Peut-on rediriger les utilisateurs connectés vers des URLs différentes sans pénalité SEO ?
  4. 1:35 Changer de framework JavaScript fait-il chuter vos positions Google ?
  5. 1:35 Changer de framework JavaScript ruine-t-il vraiment votre SEO ?
  6. 4:46 Le HTML rendu suffit-il vraiment à garantir l'indexation du JavaScript ?
  7. 4:46 Comment vérifier si votre contenu JavaScript est réellement indexable par Google ?
  8. 5:48 Le contenu derrière login est-il vraiment invisible pour Google ?
  9. 5:48 Le contenu derrière un login est-il vraiment invisible pour Google ?
  10. 8:42 Faut-il traiter Googlebot différemment des utilisateurs pour gérer les redirections ?
  11. 11:20 Faut-il vraiment masquer les bannières de consentement à Googlebot pour améliorer son crawl ?
  12. 11:20 Faut-il afficher les écrans de consentement à Googlebot au risque d'être pénalisé pour cloaking ?
  13. 14:00 Comment identifier précisément les éléments qui dégradent votre Cumulative Layout Shift ?
  14. 18:18 Pourquoi vos outils de test PageSpeed affichent-ils des scores LCP et FCP contradictoires ?
  15. 19:51 Pourquoi vos URLs avec hash (#) ne seront jamais indexées par Google ?
  16. 20:23 Faut-il vraiment supprimer les hashs des URLs d'événements sportifs pour les indexer ?
  17. 23:32 Le pré-rendu pour Googlebot : faut-il vraiment s'en passer ?
  18. 24:02 Faut-il vraiment désactiver JavaScript sur vos pages pré-rendues pour Googlebot ?
  19. 26:42 Le JSON-LD ralentit-il vraiment votre temps de chargement ?
  20. 26:42 Le balisage FAQ Schema est-il vraiment inutile pour vos pages produits ?
  21. 26:42 Le JSON-LD FAQ Schema ralentit-il vraiment votre site ?
  22. 26:42 Le balisage FAQ Schema nuit-il à votre taux de conversion ?
📅
Official statement from (5 years ago)
TL;DR

Google allows redirecting only Googlebot to the www domain to avoid CORB errors caused by a service worker but strongly advises against this approach. Martin Splitt emphasizes: fix the root cause (the service worker targeting the wrong domain) instead of piling on workarounds. Such hacks complicate future debugging and mask a technical issue that is better resolved properly.

What you need to understand

What is a CORB error and why does it affect Googlebot?

CORB (Cross-Origin Read Blocking) is a browser security mechanism that prevents a web page from reading certain cross-origin resources. When a service worker makes requests to a domain different from that of the page (e.g., the page is on example.com, the service worker is hitting www.example.com), the browser blocks the read to protect users.

Googlebot uses a modern rendering engine that implements these protections. If your service worker is misconfigured and generates CORB errors, Googlebot may encounter crawl or rendering issues similar to those of a real browser. Result: poorly indexed pages or critical resources not loading.

Why are some sites redirecting Googlebot to www?

Faced with these errors, some developers found a technical shortcut: detect Googlebot via the user-agent and automatically redirect it to the www domain while users remain on the non-www version (or vice versa). The idea? Artificially align the page domain with the one targeted by the service worker, only for the bot.

This is technically acceptable according to Google—no immediate penalty—but it's like putting a Band-Aid on a broken leg. You are circumventing the symptom without treating the root cause, and you create a divergence between the bot experience and the user experience.

Why does Google recommend fixing the root cause?

Martin Splitt is clear: fixing the service worker to target the right domain is the only sustainable solution. A workaround like this adds complexity to debugging: if a problem arises later, you won’t know if it’s related to the service worker, the conditional redirect, or another factor.

Moreover, this approach masks a real bug on the front-end that could impact users in certain scenarios (HTTPS migration, CDN changes, evolving service worker). Fixing the root ensures technical consistency and avoids unpleasant surprises during audits or redesigns.

  • CORB protects users by blocking cross-origin reads—Googlebot is subject to it like a modern browser
  • Redirecting Googlebot to www to bypass CORB is technically allowed but highly discouraged
  • The best practice: fix the service worker to target the domain consistent with the page
  • A workaround complicates debugging and masks a real technical issue
  • Avoid bot/user divergence—they weaken long-term maintenance

SEO Expert opinion

Is Google's tolerance a trap to avoid?

When Google says, "it's technically acceptable," it doesn't mean "it's a good idea." The history of SEO is filled with tolerated practices that end up causing problems during an algorithm update or a change in guidelines. Here, Martin Splitt takes the time to clarify that he recommends NOT doing it—it’s a strong signal.

In practice, redirecting only Googlebot introduces an asymmetry between what the bot sees and what users experience. Even if it’s not strict cloaking (no different content), it remains a form of differential treatment that can complicate audits, tests, and migrations. If tomorrow Google decides to tighten its stance on conditional redirects, you’ll be on the front line.

What concrete risks does this pose for a production site?

The main risk is not an immediate penalty, but an invisible technical debt. Imagine: you migrate to a new CDN, switch to strict full HTTPS, or refactor your service worker. Suddenly, the conditional redirect conflicts with another mechanism, and you spend hours figuring out why Googlebot sees a different version.

[To be verified] Google has not published data on the frequency of these CORB errors in crawling, nor on their actual impact on indexing. We lack massive field feedback confirming that this workaround remains stable over time. My advice: if you absolutely must implement it, document it VERY clearly in your technical wiki and plan a proper fix as soon as possible.

In what cases could this workaround justify itself temporarily?

Let’s be pragmatic. If you are in an absolute emergency—for example, a major migration launched and CORB errors blocking the indexing of critical pages—conditional redirection can act as a band-aid until you fix the service worker. But it must remain temporary and tracked in a prioritized backlog.

In contrast, if you are building a new site or refactoring your PWA, don't even consider this option. Properly configure your domains and service workers from the get-go. It’s less glamorous than a clever hack, but it distinguishes a solid project from a house of cards.

Practical impact and recommendations

How can I check if my site is affected by CORB errors?

The first step: inspect the Search Console in the "Coverage" and "Crawl Issues" sections. Look for rendering errors, timeouts, or blocked resources. Then, use the rich results testing tool or the URL inspector to see if Googlebot encounters specific CORB errors.

On the browser side, open the developer console (F12), enable the Application > Service Workers mode, and monitor network requests. If you see "Cross-Origin Read Blocking" warnings when the service worker tries to load resources, you have a problem. Test across multiple domains (www vs non-www, HTTP vs HTTPS) to identify inconsistencies.

What is the right method to fix a misconfigured service worker?

Modify the scope of the service worker to target the same domain as your pages. If your users are browsing on example.com, the service worker must register its fetch handlers on example.com, not on www.example.com. Also, ensure that the cache URLs and API requests respect the same domain.

Next, test locally, then in staging, and then in production with a progressive deployment. Monitor the Core Web Vitals metrics and network errors. If you are using Workbox or a PWA framework, ensure that the routing and cache configuration aligns with your domain architecture. No hacks, no conditional redirects—just clean configuration.

Should you really avoid conditional redirection even in emergencies?

If you are in a crawl crisis with thousands of non-indexed pages due to CORB errors, conditional redirection can be an acceptable band-aid for 48-72 hours. But document it, track it in a priority ticket, and plan the proper fix immediately. Never leave such a workaround in production for more than a few weeks.

In all other cases, invest the necessary time to fix the root cause. It may seem burdensome, but it guarantees long-term stability. A well-configured service worker is an investment that pays off for years. A conditional redirect is a debt that will catch up with you at the worst time.

  • Audit CORB errors in Search Console and in the browser console
  • Ensure the service worker targets the same domain as your pages (www vs non-www)
  • Avoid conditional redirects except in absolute and temporary emergencies (max 2-3 weeks)
  • Test the configuration locally, in staging, then in production with a progressive rollout
  • Document all technical workarounds in a wiki and a prioritized backlog
  • Monitor Core Web Vitals and network errors after each change
Correcting a misconfigured service worker and managing CORB errors requires sharp technical expertise, especially if your site relies on a complex PWA or a multi-domain architecture. These optimizations can quickly become time-consuming and error-prone if not mastered. In this context, enlisting the help of a specialized SEO agency that understands the nuances of modern JavaScript rendering and crawling can save you valuable time and avoid costly indexing mistakes.

❓ Frequently Asked Questions

Rediriger uniquement Googlebot vers www est-il considéré comme du cloaking ?
Non, Google ne le considère pas comme du cloaking strict tant que le contenu reste identique. Mais c'est déconseillé car cela introduit une divergence technique entre bot et utilisateurs, ce qui peut compliquer le débogage.
Les erreurs CORB peuvent-elles empêcher l'indexation de mes pages ?
Oui, si le service worker bloque des ressources critiques (CSS, JS, contenu dynamique), Googlebot peut échouer à rendre correctement la page. Cela peut entraîner une indexation partielle ou absente.
Comment savoir si mon service worker génère des erreurs CORB pour Googlebot ?
Utilisez l'outil d'inspection d'URL dans Search Console et regardez la capture d'écran rendue. Consultez aussi les logs de la console dans l'onglet 'Plus d'infos' pour identifier les erreurs CORB spécifiques.
Corriger le service worker est-il plus complexe qu'appliquer une redirection conditionnelle ?
À court terme, oui — ça demande de modifier le code du service worker et de tester. Mais à long terme, c'est beaucoup plus simple à maintenir et ça évite les dettes techniques.
Peut-on utiliser une redirection conditionnelle pendant une migration de domaine ?
C'est déconseillé. Les migrations de domaine sont déjà complexes ; ajouter une redirection conditionnelle risque de masquer des problèmes critiques. Corrigez d'abord le service worker, puis migrez proprement.
🏷 Related Topics
Domain Age & History Content Crawl & Indexing AI & SEO JavaScript & Technical SEO Domain Name Pagination & Structure Redirects

🎥 From the same video 22

Other SEO insights extracted from this same Google Search Central video · duration 28 min · published on 01/07/2020

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.