This rule is triggered when PageSpeed Insights detects that you used multiple redirects during the transition of the specified URL to the final destination page.
Because redirects trigger additional HTTP request response cycles and add additional round-trip time latency, it is critical to minimize the number of redirects issued by the application. Avoiding HTTP redirection can reduce the time users wait for Web pages to load. We suggest that you carefully consider the design of your website to see where you can improve the performance of your website.
Here are some examples of the pros and cons of redirect mode:
- Quality:example.com使用響應性網頁設計,無需重定向
- 中等: example.com-> m.example.com/home
- Inferior quality: example.com-> www.example.com-> m.example.com-> m.example.com/home
?
Follow Google's advice to useResponsive web designYour site will naturally avoid redirects.
如果您的網站明確要求進行重定向,您必須執(zhí)行以下兩項操作:- 使用HTTP重定向Send the user using the mobile user agent directly to the peer mobile URL without performing any intermediate redirection; And
- Add to your desktop page
< link rel= "alternate" >標記來識別對等的移動版網址,以便Googlebot能夠找到您的移動版網頁。
Except as otherwise noted, the content of this page is licensed under the?Creative Commons Attribution 3.0 License, and code samples are licensed under theApache 2.0 License. For details, see our?Site Policies.