[WordPress] 外掛分享: Resource Not Found Placeholder | Prevent redirections due to not foud resources

首頁外掛目錄 › Resource Not Found Placeholder | Prevent redirections due to not foud resources
WordPress 外掛 Resource Not Found Placeholder | Prevent redirections due to not foud resources 的封面圖片
20+
安裝啟用
★★★★
4.5/5 分(2 則評價)
98 天前
最後更新
問題解決
WordPress 4.6+ PHP 5.6+ v0.0.4 上架:2023-02-08

內容簡介

這款外掛能夠避免因為缺少資源所導致的404錯誤與重定向。當資源找不到時,外掛會將其替換為空的資源。
這款外掛不需要進行任何設定。只要啟用它,就會自動替換所有缺少的資源為空的資源,防止404錯誤和昂貴的重定向。
許多主題會呼叫https://yoursite.com/favicon.ico,而非最終的favicon URL。
信不信由你,當像favicon這樣的資源找不到時,WordPress會載入所有外掛、主題和核心,然後對最終的favicon圖像進行重定向。
這意味著重定向之前整個WordPress生態系統的PHP代碼都運行了,所有數據庫的查詢都已經完成。
從性能方面來看,這非常昂貴。您可能已經看到過一些WordPress網站,在顯示favicon或者找不到資源時需要花費很長時間。這款外掛就是為了防止這種問題的產生。
如果發現favicon圖標不在主目錄中,外掛不會將其替換為空的圖標,而是直接將最終的favicon圖像傳送到瀏覽器,不進行任何重定向。
對於其他所有情況,外掛都會將缺少的資源替換為空資源。
它可以工作於任何類型的資源,但是將副檔名為.txt和.xml的檔案排除在外,以避免與如robots.txt和網站地圖等實時生成的檔案產生問題。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Resource Not Found Placeholder | Prevent redirections due to not foud resources」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

No more 404 errors and redirections due to missing resources. When a resource is not found, the plugin will replace it with an empty resource.
No settings are needed for this plugin. Just activate it, and it will replace all the missing resources with empty resources, preventing 404 errors and expensive redirections.
Many themes call https://yoursite.com/favicon.ico instead of the final favicon URL.
Believe it or not, when a resource like a favicon is not found, WordPress loads all the plugins, the theme, and the core, and then it does a redirection to the final favicon image.
This means that before the redirection the PHP code of the entire WordPress ecosystem runs, and all the database queries take place.
This is really expensive in terms of performance. You may have already seen some WordPress websites where the favicon needs a long time before being displayed or long waiting times for a not found resource. Well, this plugin prevents this kind of issue.
In the case of the favicon, if it’s not found in the main directory, the plugin will not replace it with an empty icon, but it will send to the browser the final favicon image without any redirections.
In all other cases, it will replace the missing resource with an empty resource.
It works for any kind of resource, but the resources with extensions .txt and .xml to avoid issues with the files which are generated on the fly like robots.txt and the sitemaps.
Backend Speed Optimization
Is your dashboard slow? We optimize admin performance by improving queries and reducing plugin load.
Read Backend Speed Optimization Service for more information.

延伸相關外掛

文章
Filter
Mastodon