前言介紹
- 這款 WordPress 外掛「Far Future Expiry Header」是 2014-03-05 上架。
- 目前有 9000 個安裝啟用數。
- 上一次更新是 2025-04-11,距離現在已有 23 天。
- 外掛最低要求 WordPress 5.5 以上版本才可以安裝。
- 有 30 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
cache | expiry | expiry header | expires header | far future expiration |
內容簡介
此外掛提供了幾個輕量級功能,可加快 WordPress 網站的速度,並且不需要太多的麻煩。
遠期到期
啟用此功能後,此外掛將修改您的 .htaccess 檔案,插入程式碼,並為常見靜態檔案類型添加到期標頭。
到期標頭指定一個足夠晚的時間,使得瀏覽器不會再次獲取未更改的圖像、CSS、JavaScript 等檔案(這會減少 HTTP 請求),從而在後續頁面查看時提高效能。
gzip 壓縮
您也可以使用此外掛在網站上啟用 gzip 壓縮。gzip 壓縮會通過壓縮頁面輸出並將其發送到訪客的瀏覽器來加快 WordPress 網站的速度。
啟用此功能後,如果訪客的瀏覽器可以處理,外掛將執行 gzip 壓縮。
此功能可能會與一些其他外掛發生衝突。因此,如果需要使用無法與 gzip 壓縮配合使用的外掛,請禁用此功能。
用法
要使用此插件,請執行以下操作:
1) 確保您的主機的主要配置檔案中啟用了 “mod_expires” 模組
2) 與您的主機提供商檢查,或者如果您可以訪問 httpd.conf 檔案,請取消註釋以下行:
LoadModule expires_module modules/mod_expires.so
3) 啟用 “遠期到期” 核取方塊
4) 設定到期的天數
5) 通過使用 “檔案類型” 區域中的核取方塊,選擇要為其啟用 “遠期到期” 功能的檔案類型
注意:當您使用此外掛時,所選擇的檔案類型被快取在瀏覽器中,直到它們到期。因此,您不應該使用此功能在經常更改的檔案上。
有關詳細信息,請參閱 插件的文件頁面
原文外掛簡介
This plugin offers a few lightweight features to speed up your WordPress site without much hassle.
Far Future Expiry
When the feature is enabled, this plugin will modify your .htaccess file by inserting code which will add expires headers for common static file types.
Expiry header specifies a time far enough in the future so that browsers won’t try to re-fetch images, CSS, javascript etc files that haven’t changed (this reduces the number of HTTP requests) and hence the performance improvement on subsequent page views.
Gzip Compression
You can also enable Gzip compression on your site using this plugin. Gzip compression will speed up your WordPress site by compressing the page output and sending it to your visitors browser.
When enabled, the plugin will do gzip compression if the visitor’s browser can handle it.
This feature may conflict with a few other plugins. So disable this feature if you need to use a plugin which doesn’t work with gzip compression.
Usage
To use this plugin do the following:
1) Ensure that the “mod_expires” module is enabled from your host’s main configuration file
2) Check with your hosting provider or if you have access to the httpd.conf file the following line should be uncommented:
LoadModule expires_module modules/mod_expires.so
3) Enable the “Far Future Expiration” checkbox
4) Set the number of days till expiry
5) Select the file types you wish to enable the “far future expiration” feature for by using the checkboxes in the “File Types” section
NOTE: When you use this plugin, the file selected file types are cached in the browser until they expire. Therefore you should not use this on files that change frequently.
More details can be found on the plugin’s documentation page
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Far Future Expiry Header」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.4 |
延伸相關外掛(你可能也想知道)
WP Super Cache 》本外掛可以從您的動態 WordPress 部落格生成靜態 HTML 檔案。在產生 HTML 檔案後,您的網頁伺服器會傳送該檔案,而不是處理比較沉重、耗費更多資源的 WordPre...。
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 》WP-Optimize Cache 是一個革命性的、全方位的 WordPress 效能外掛,將您的網站做快取、清理資料庫及圖片壓縮,讓您的網站快速且最佳化。我們的快取功能是建構...。
WP Fastest Cache 》han PNG or JPEG, which means faster downloads and less data consumption for your visitors, Database Cleanup – Detect and delete unnecessary d...。
SpeedyCache – Cache, Optimization, Performance 》SpeedyCache 是一款 WordPress 外掛,能透過網頁快取、最小化檔案和檔案壓縮的方式,幫助您減少網站載入時間。, 您可以在 https://speedycache.com/docs 找到...。
Breeze – WordPress Cache Plugin 》Breeze是由Cloudways團隊開發的一款免費、簡單(卻功能強大)且使用者友好的WordPress快取外掛。它提供不同層級的WordPress效能優化選項,在WordPress、搭配W...。
Jetpack Boost – Website Speed, Performance and Critical CSS 》使用 Jetpack Boost 優化網頁性能加速你的 WordPress 網站。輕鬆啟用一鍵優化,提升核心 Web 重要指標。, 你是否知道,更快的網站可以:, , 在 Google 搜尋排...。
OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy. 》, 使用 Google 的字型服務,怎麼可能與 GDPR 不符呢?事實上,當使用者的瀏覽器要求字型時,他們的 IP 會被 Google 記錄並用於分析。, — Lifehacker, , OMG...。
10Web Booster – Website speed optimization, Cache & Page Speed optimizer 》10Web Booster 是提升網站整體效能的速度優化外掛程式,讓您專注並蓬勃發展 WordPress 網站的創意方面,同時讓我們專心於 WordPress 效能最佳化。透過 10Web ...。
NitroPack – Caching & Speed Optimization for Core Web Vitals, Defer CSS & JS, Lazy load Images and CDN 》NitroPack 是一個全方位的網站效能優化服務外掛,它包含了所有使網站加速所需的功能,包括圖片優化、代碼壓縮、快取、CDN (內容交付網路)、延遲載入等等。, ,...。
Hummingbird Performance – Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN 》Hummingbird 透過添加細調控制文件壓縮、延後 CSS 和 JavaScript 樣式和腳本、CSS 和 JS 壓縮,以及懶加載等全球最佳緩存優化方法,讓您的網站更快,並優化網...。
Cache Enabler 》Cache Enabler 是個簡單卻強大的 WordPress 快取外掛,使用起來簡單且只需要最小化的設定,最重要的是能夠幫助網站提升效能來達到更快的載入時間。它會將前端...。
Aruba HiSpeed Cache 》Aruba HiSpeed Cache 是一個外掛,直接與 HiSpeed Cache 服務介面互動,該服務適用於 Aruba 主機平台,並能在 WordPress 儀表板中自動管理,無需訪問網站控制...。
Recent Tweets Widget 》查看最新的 WordPress 外掛優惠。, 使用快取的 Twitter API v1.1 最新的 Recent Tweets Widget (最近的 Tweet 外掛)。它使用新版 Twitter API v1.1,並將 Twe...。
Clearfy Cache – WordPress optimization plugin, Minify HTML, CSS & JS, Defer 》數千個使用者已經使用 Clearfy 外掛優化他們的 WordPress 網站。這是一個綜合且免費的工具,擁有豐富的設定。搭配其他外掛使用,可以讓您的 WordPress 網站更...。
Seraphinite Accelerator 》這個外掛可以加速您的網站,使其更具吸引力和搜索引擎友好性。詳細了解如何使用。, 若要使用免費的額外功能,請按照屏幕上的外掛程式指示安裝免費的延伸外掛...。