dic 22, 2015
PageSpeed Insights
0
On this page
當(dāng)PageSpeed Insights檢測到您在指定網(wǎng)址轉(zhuǎn)至最終目標(biāo)網(wǎng)頁的過程中使用了多個重定向時,就會觸發(fā)此規(guī)則。
由于重定向會觸發(fā)額外的HTTP請求響應(yīng)周期,并會額外延長往返時間延遲,因此,將應(yīng)用發(fā)出的重定向數(shù)量降至最低至關(guān)重要。避免HTTP重定向可以縮減用戶等待網(wǎng)頁加載的時間。我們建議您仔細(xì)斟酌自己網(wǎng)站的設(shè)計,看看可以在哪些方面提升網(wǎng)站性能。
以下是重定向模式的一些優(yōu)劣示例:
- 優(yōu)質(zhì):example.com使用響應(yīng)性網(wǎng)頁設(shè)計,無需重定向
- 中等:example.com -> m.example.com/home
- 劣質(zhì):example.com -> www.example.com -> m.example.com -> m.example.com/home
按照Google的建議使用響應(yīng)性網(wǎng)頁設(shè)計,您的網(wǎng)站自然會避免重定向。
如果您的網(wǎng)站明確要求進(jìn)行重定向,您必須執(zhí)行以下兩項操作:- 使用HTTP重定向將采用移動用戶代理的用戶直接發(fā)送到對等的移動版網(wǎng)址,而不執(zhí)行任何中間的重定向;并且
- 在您的桌面版網(wǎng)頁中加入
<link rel="alternate">標(biāo)記來識別對等的移動版網(wǎng)址,以便Googlebot能夠找到您的移動版網(wǎng)頁。
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 the Apache 2.0 License. For details, see our Site Policies.
Articles
PageSpeed Insights
Volver a la lista
Articles
