內容簡介
這個外掛可以移除 WordPress 在 HTML5 音頻和視頻 mediaelement.js 播放器中添加的查詢字符串「?=1」,它可以匹配等號後的任何數字,例如「?=42」都會被移除。
這個外掛的優點包括:
頁面加載性能:通過像 PageSpeed、YSlow、Pingdoom 和 GTmetrix 這樣的服務來提高頁面速度得分。
緩存:具有查詢字符串參數(如在 URL 中以「?」開頭,後面跟著以「&」分隔的名稱=值對)的鏈接通常是無法緩存的。
統計和分析:防止統計和分析服務在報告中包含查詢字符串。
Google 的加速移動頁面(AMP):移除媒體文件鏈接被檢測為 AMP 錯誤的可能性。
兼容的媒體外掛
Blubrry PowerPress 播客外掛
如果這個外掛能夠與您喜愛的媒體外掛一起使用,請與我聯繫,我會將其添加到列表中。
外掛標籤
開發者團隊
② 後台搜尋「Remove Query Arg from Media URLs ?_=1」→ 直接安裝(推薦)
原文外掛簡介
Remove the query string ?=1 added by WordPress adds to media URLs in HTML5 audio and video mediaelement.js players. It will match any digit that follows the equals sign, e.g. ?=42 will be removed.
This plugin is ideal for the following reasons
Page Loading Performance: Improve page speed scores with services like PageSpeed, YSlow, Pingdoom and GTmetrix.
Caching: Links with query string parameters such as “?” followed by name=value pairs separated by ‘&’ in the URL are typically not cacheable
Statistics and Analytics: Prevent statistics and analytics services from including the query string in reporting.
Compatible Media Plugins
Blubrry PowerPress podcasting plugin
If this plugin works with your favorite media plugin, please contact me and I will add it to the list.
