[WordPress] 外掛分享: Leverage Browser Caching

首頁外掛目錄 › Leverage Browser Caching
WordPress 外掛 Leverage Browser Caching 的封面圖片
10,000+
安裝啟用
★★★★
4.1/5 分(42 則評價)
24 天前
最後更新
問題解決
WordPress 4.0+ PHP 5.6+ v3.1 上架:2017-07-02

內容簡介

這個 WordPress 外掛名稱就是『Leverage Browser Caching』,它可以解決你的 WordPress 網站中與檔案快取相關的問題,同時也可以提升網站在 Pingdom、GTmetrix、PageSpeed、Google PageSpeed Insights、YSlow 等測試工具中的網頁速度分數。

什麼是檔案快取?

檔案快取就是將網站的靜態檔案存放在訪客的瀏覽器中,然後從瀏覽器中快速擷取它們而不是從伺服器上再次擷取,這樣可以提高網站的每個頁面的載入速度。

檔案快取如何運作?

當你訪問網頁時,你的瀏覽器會下載該頁面的所有內容以及通用的靜態檔案,例如 CSS 和 JS 檔案。當你訪問同一網站的其他頁面時,瀏覽器會再次下載這些檔案。但如果你啟用了檔案快取,那麼所有的靜態檔案都會從你的瀏覽器中提供而不是從伺服器上提供。現在當你訪問該網站的任何一個頁面時,它只會下載該頁面的唯一內容,而靜態檔案會從你的瀏覽器中提供。這樣可以加快網站的每個頁面載入速度。

檔案快取的好處

首要的好處是可以提升網站速度,因為靜態檔案會從你的瀏覽器中提供,可以節省網站訪客的網路流量。同時也可以節省網站伺服器的頻寬,降低伺服器的負載,簡單來說,它減少了 HTTP 請求。

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Leverage Browser Caching」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Leverage Browser Caching is a lightweight, zero-configuration WordPress plugin that dramatically improves your website’s loading speed by instructing visitors’ browsers to cache static files locally.
With a single activation, the plugin writes optimized browser caching rules to your .htaccess file. When you deactivate the plugin, those rules are cleanly removed — leaving your .htaccess exactly as it was.
Why Browser Caching Matters
Every time a visitor loads a page, their browser downloads CSS, JavaScript, images, and fonts. Without caching, those same files are re-downloaded on every single visit — wasting bandwidth and slowing down your site.
Browser caching tells the visitor’s browser to store those static files locally for a set period. On their next visit, the browser serves them from its local cache instead of fetching them from the server again. The result: faster page loads, lower server load, and a better user experience.
What This Plugin Does

Adds browser caching expiry headers to your .htaccess file on plugin activation.
Removes them cleanly on plugin deactivation — no leftover code.
Requires zero configuration — install, activate, and it works.
Covers all major static asset types:

Images — JPEG, PNG, GIF, WebP, AVIF, SVG, ICO
Web Fonts — WOFF, WOFF2, TTF
Stylesheets — CSS
Scripts — JavaScript
Documents — HTML, XHTML, PDF
Data — JSON
Other — SWF

Improve Your PageSpeed Score
This plugin directly fixes the “Leverage Browser Caching” or “Serve static assets with an efficient cache policy” warning shown by:

Google PageSpeed Insights
GTmetrix
Pingdom Website Speed Test
WebPageTest
YSlow

Cache Expiry Periods
Asset Type
Cache Duration
Images (JPEG, PNG, GIF, WebP, AVIF, SVG, ICO)
1 Year
Web Fonts (WOFF, WOFF2, TTF)
1 Year
CSS, JavaScript
1 Month
HTML, PDF, JSON
1 Month
Everything else
1 Month
Requirements

Apache web server with mod_expires module enabled.
A writable .htaccess file in your WordPress root directory.
This plugin does not work on Nginx or IIS servers.

Upgrade to Pro
Get even faster load times and more advanced features with Leverage Browser Caching Pro!

Advanced Caching & Compression: Customizable Cache Durations, GZIP Compression, Cache-Control Headers, Keep-Alive, and ETag Removal.
Code Minification: Minify CSS, JS, and HTML, plus Delay JavaScript for a massive PageSpeed boost.
Media & Font Optimization: Lazy Load Images & iFrames, and Google Fonts Optimization.
Database & Site Health: Database Cleanup, DNS Prefetch, Preload Links, Heartbeat Control, and XML-RPC Disable.
WooCommerce Ready: Built-in WooCommerce Optimization.
Settings Admin Page: Easy-to-use interface to manage all features.
Premium Support & Updates: Get fast, dedicated assistance and regular new features.

Upgrade to Leverage Browser Caching Pro today!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon