[WordPress] 外掛分享: Fast 404

WordPress 外掛 Fast 404 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Fast 404」是 2020-05-17 上架。
  • 目前有 50 個安裝啟用數。
  • 上一次更新是 2023-07-23,距離現在已有 651 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.9.2 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.1 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

ayeshrajans |

外掛標籤

404 | performance | page not found |

內容簡介

Fast 404 是一個佔用資源極低的外掛程式。當它檢查到某一個 HTTP 請求為非存在的資源時,它會立即停止該請求並返回結果。但若該請求帶有 HTML 頁面的標示指令(這是透過 Accept HTTP 標頭做出的),Fast 404 並不會攔截該請求。對於其它所有請求,Fast 404 能夠迅速中止該請求,減少了伺服器的資源佔用與頻寬使用。

每當使用者瀏覽器發起一個資源請求 (例如要求下載 jpg 圖片或 .woff2 字型檔案),伺服器會在指定的檔案位置將此資源回傳給該瀏覽器。但如果該檔案不存在,該請求將會被轉交給 WordPress 進一步處理。除非你使用的是一個能夠動態產生這些檔案的外掛程式,否則這些找不到檔案的請求都會觸發 WordPress 置入完整的「Page-Not-Found」的錯誤提示頁面。Fast 404可檢查來自瀏覽器的請求,如果瀏覽器所要求的資源不是 HTML 頁面,Fast 404 就會立即終止該請求,防止 WordPress 處理該請求的浪費資源行為,同時確保所短路的404錯誤頁面僅返回到瀏覽器的快取,而非給予最終使用者導致閱讀體驗打斷的網頁。

Fast 404 會預設攔截所有帶有以下檔案擴展名的 HTTP 請求: js|css|jpg|jpeg|gif|png|webp|ico|exe|bin|dmg|woff|woff2。你可以調整儲存擴展名的方式,也可以設定一個排除規則以防某些特定的請求被 Fast 404 拦截。

這個外掛程式是 phpwatch/fast404 包的 WordPress 移植版本。

原文外掛簡介

Fast 404 is a low foot-print plugin that quickly inspects an incoming HTTP request, and terminates the request as soon as possible if the request is for a non-existing resource. If the browser is expecting an HTML page (indicated by the Accept HTTP header), this plugin will not intercept it. For all other requests, this plugin will terminate it immediately, saving server resources and bandwidth.
When a user browser requests a resource (such as a jpg image, or a .woff2 font file), the web server sends this resource if it is available in the requested location. If the file does not exist, the request is forwarded to WordPress to handle. Unless you are using a plugin that dynamically generates these files, these file-not-found requests trigger a full WordPress Page-Not-Found error page. This plugin inspects such incoming requests, and if the browser indicates that it is looking for a resource other than an HTML page, this plugin terminates the request as soon as possible to prevent WordPress from serving this request which would be a waste of resources and bandwidth. This plugin carefully makes sure that the short-circuited 404 pages (which just shows “Not Found” on a blank page) is only returned to browser asset requests, and not for end users who expect an HTML page.
By default, all HTTP requests to js|css|jpg|jpeg|gif|png|webp|ico|exe|bin|dmg|woff|woff2 extensions will be fast 404’d. You can configure the extensions and even configure an exclusion pattern to prevent this plugin from intercepting certain requests.
This plugin is the WordPress port of PHPWatch/Fast404 package.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Fast 404」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.2 | trunk |

延伸相關外掛(你可能也想知道)

  • 404 Redirect 》透過將所有 404 錯誤請求重新導向到特定頁面,保留更多訪客和 SEO 優化效果。。
  • Ultimate Redirect Manager 》總結:Ultimate Redirect Manager 是WordPress最先進的重定向工具,可將網站的錯誤連結和網址重定向至您所選擇的頁面,能夠追蹤和管理 404、301、302 和「Pag...。
  • WP 404 Page Management 》WP 404 Page Management 是一個簡單的外掛,啟用後可以將所有的404頁面錯誤導向您選擇的URL。, 主要功能, , 選擇您想要導向的URL, 可以在管理面板中啟用和停用, 。
  • PF404 for PetFinder 》使用PF404 for PetFinder可以替換您的通用404頁面,並將其替換為可供領養的動物。您可以在狗、貓、鳥、爬蟲類、馬、小型和毛茸茸,甚至農場動物之間進行選擇...。

文章
Filter
Mastodon