簡體   English   中英

加速Wordpress / Woocommerce - WP Super Cache - “利用瀏覽器緩存”

[英]Speed Up Wordpress/Woocommerce - WP Super Cache - “Leverage Browser Caching”

我正在嘗試為我的網站整理緩存,這是一個非常大的電子商務網站超過45,000種產品,並且計算http://comparedeals.net

我添加了一個緩存插件wp超級緩存,但問題是當我在https://tools.pingdom.com上測試我的網站時,瀏覽器緩存的分數只有4. https://tools.pingdom.com/#!/ dFhyLB / HTTP://comparedeals.net

**4     Leverage browser caching**

The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:

    http://comparedeals.net/wp-content/themes/wootique-child/style.css
    http://comparedeals.net/wp-content/themes/wootique/css/reset.css
    http://comparedeals.net/wp-content/themes/wootique/custom.css
    http://comparedeals.net/wp-content/themes/wootique/functions/css/shortcodes.css
    http://comparedeals.net/wp-content/themes/wootique/images/ico-cart-light.png
    http://comparedeals.net/wp-content/themes/wootique/images/ico-search.png
    http://comparedeals.net/wp-content/themes/wootique/styles/default.css
    http://comparedeals.net/wp-content/uploads/2016/07/Apple-iPhone-5s-16GB-Gold-200x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/Apple-iPhone-5s-16GB-Space-Grey-200x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/Apple-iPhone-6s-16GB-Space-Grey-123x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/Apple-iPhone-SE-16GB-Gold-96x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/Apple-iPhone-SE-16GB-Rose-Gold-97x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/Apple-iPhone-SE-16GB-Silver-96x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/Apple-iPhone-SE-16GB-Space-Grey-96x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/HTC-10-32GB-Glacial-Silver-100x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/LG-G5-32GB-Titan-Grey-100x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/Samsung-Galaxy-S7-32GB-Black-101x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/Samsung-Galaxy-S7-Edge-32GB-Black-98x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/Sony-Xperia-Z5-Black-100x200.png
    http://comparedeals.net/wp-content/uploads/2016/07/comparedeals-logo.png
    http://comparedeals.net/wp-content/uploads/slider2/b3b5017c06a693ceb7a6c5c279a5795d.jpeg
    http://comparedeals.net/wp-content/uploads/slider2/s1.jpeg
    http://comparedeals.net/wp-content/uploads/slider2/upgrade-desktop_v2.jpeg
    http://comparedeals.net/wp-includes/js/thickbox/loadingAnimation.gif
    http://fonts.googleapis.com/css?family=Montserrat:400&subset=latin
    http://fonts.googleapis.com/css?family=Varela+Round%3Aregular

如何使用wp超級緩存增加我的網站得分緩存,我嘗試了W3 Total緩存,將該分數提高到94但我的頁面加載速度減慢到60秒加載頁面。

我基本上只是想讓我的網站盡快加載任何建議嗎?

我的托管也是業務級共享bluehost雲站點,所以我假設我有必要的資源。

首先讓我們分開頁面緩存和瀏覽器緩存,它們是不同的東西。

W3總緩存是一個很棒的插件,但它有很多設置,有時很難正確設置(因此您的網站速度變慢)。

WP Super Cache不太復雜,適用於大多數網站,但它沒有瀏覽器緩存控制功能。

我的建議是:繼續使用WP Super Cache並手動設置瀏覽器緩存。 為此,您需要編輯.htaccess文件並按類型提供資源到期。 我建議你閱讀這篇優化WordPress - 瀏覽器緩存文章,了解什么是瀏覽器緩存,在文章中你會看到利用瀏覽器緩存的故障安全.htaccess規則的例子,只是將它們添加到你當前的.htaccess文件中。

注意:必須在服務器上啟用mod_expires(默認情況下通常啟用它)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM