當(dāng)PageSpeed Insights檢測到網(wǎng)頁上的壓縮資源未與HTTP壓縮一同提供時,就會觸發(fā)此規(guī)則。
?? ???? ??? ?? ??? ????? ?? ????? ???? ??? ??? ?? ??? ? ????.
gzip
格式,然后再發(fā)送該壓縮文件以供下載。這樣可以在下載呈現(xiàn)網(wǎng)站所需的資源時,為您節(jié)省一些時間。
???? ???? ?? ??? ????? ???? ???. ?? ????? ?? ?? ???? ???? ??? ? ?? ?? ??? ?? ???.
?
- PageSpeed Insights? ?? ?? ??? ??? gzip ???? ???? ??? ?????. ??? gzip ?? ???? ????? ???? ??? ??????. PageSpeed Insights? ??? ?? ??? ???? ??? ??? ??????
- ??? ??? ?????? ?????? ??? ????? ???? ????? ? ?? ??? ????? ? ????. PageSpeed Insights? ?????? ??? ??? ??? ???? ??? ???? ???, ??? ?????? ?????? ????? ? ?? ?? ??? ??? ?? ????? ????? ??? ????? ??(???? ??? ??? ???? ????? ? ???? ??? ??? ??? ???? ?? ???? ?? ? ??), ? ??? ??? ? ????.
要確定代理服務(wù)器是否為導(dǎo)致此問題的原因,您可以使用PageSpeed Insights Chrome ?? ??來檢查標(biāo)頭:
- 在相關(guān)網(wǎng)頁上運(yùn)行PageSpeed。
- 點(diǎn)擊?? ?????.
- 展開標(biāo)為未壓縮的資源的網(wǎng)址。系統(tǒng)將顯示伴隨該資源一同顯示的標(biāo)頭。如果您看到一個名為
Via
、Forwarded
或Proxy-Connection
的標(biāo)頭,則表明代理服務(wù)器已提供該資源。
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.