2016-07-08 247 views
1

我想爲我的網站整理緩存,這是一個非常大的電子商務網站超過45,000個產品,並計數http://comparedeals.net加速Wordpress/Woocommerce - 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總緩存,將該分數提高到94,但是我的頁面放慢到60秒來加載頁面。

我基本上只是希望我的網站儘可能快加載儘可能有什麼建議嗎?

而且我的主機是企業級共享BlueHost的雲網站,所以我想我有必要的資源。

回答

3

都讓的單獨的頁面緩存和瀏覽器緩存首先,他們是不同的東西。

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

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

我的建議是:繼續使用可溼性粉劑超高速緩存和設置瀏覽器緩存手動。爲此,您需要編輯.htaccess文件,並按類型爲您的資源提供過期時間。我建議你閱讀這篇Optimizing WordPress – Browser Cache文章,瞭解什麼是瀏覽器緩存,在文章中你會看到利用瀏覽器緩存的故障安全.htaccess規則的例子,只需將它們預先安裝到當前的.htaccess文件中即可。

注意:必須在您的服務器上啓用mod_expires(通常默認啓用)