Skip to content
Learn Measure Blog Case studies About
On this page
  • How the Lighthouse multiple redirects audit fails
  • How to eliminate redirects
  • Stack-specific guidance
    • React
  • Resources

Avoid multiple page redirects

May 4, 2019 — Updated Sep 19, 2019
Available in: Español, 한국어, Português, Русский, 中文, English
Appears in: Performance audits
On this page
  • How the Lighthouse multiple redirects audit fails
  • How to eliminate redirects
  • Stack-specific guidance
    • React
  • Resources

Redirects slow down your page load speed. When a browser requests a resource that has been redirected, the server usually returns an HTTP response like this:

HTTP/1.1 301 Moved Permanently
Location: /path/to/new/location

The browser must then make another HTTP request at the new location to retrieve the resource. This additional trip across the network can delay the loading of the resource by hundreds of milliseconds.

How the Lighthouse multiple redirects audit fails #

Lighthouse flags pages that have multiple redirects:

A page fails this audit when it has two or more redirects.

How to eliminate redirects #

Point links to flagged resources to the resources' current locations. It's especially important to avoid redirects in resources required for your Critical Rendering Path.

If you're using redirects to divert mobile users to the mobile version of your page, consider redesigning your site to use Responsive Design.

Stack-specific guidance #

React #

If you are using React Router, minimize usage of the <Redirect> component for route navigations.

Resources #

  • Source code for Avoid multiple page redirects audit
  • Redirections in HTTP
  • Avoid Landing Page Redirects
Last updated: Sep 19, 2019 — Improve article
Return to all articles
Share
subscribe

Contribute

  • File a bug
  • View source

Related content

  • developer.chrome.com
  • Chrome updates
  • Web Fundamentals
  • Case studies
  • Podcasts
  • Shows

Connect

  • Twitter
  • YouTube
  • Google Developers
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Terms & Privacy
  • Community Guidelines

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies.