
內容簡介
這個 WordPress 外掛名為「Remove Query Strings from Static Resources」,它會刪除靜態資源(JavaScript、CSS 檔案)中的查詢字串,進而提升 WordPress 網站的速度。此外,它同時也能夠增進 Pingdom、GTmetrix、PageSpeed、YSlow 等網站測試工具所顯示的速度分數。
查詢字串(Query Strings)是什麼?
刪除查詢字串的益處
這是一種搜尋引擎最佳化的方法,因此它能夠提升網站在搜尋引擎上的排名。同時,它還能夠提高網站測試工具所顯示的速度分數。這樣一來,網站的表現和流量都能夠獲得提升。
外掛標籤
開發者團隊
② 後台搜尋「WP Remove Query Strings From Static Resources」→ 直接安裝(推薦)
原文外掛簡介
WP Remove Query Strings From Static Resources is a lightweight, zero-configuration WordPress plugin that automatically removes query strings (like ?ver=6.6) from your local CSS and JavaScript file URLs. It intelligently ignores external resources (such as third-party APIs like Google Maps) to prevent breaking their functionality, and features strict extension checking to protect dynamic scripts.
By default, WordPress appends version parameters to static resource URLs — for example:
https://example.com/style.css?ver=6.6
While this helps with cache-busting during development, it prevents proxy servers and CDN networks from properly caching these files, which hurts your website’s performance score.
This plugin strips those query strings, turning URLs like:
https://example.com/style.css?ver=6.6
into clean, cacheable URLs like:
https://example.com/style.css
Why Does This Matter?
Speed is a critical ranking factor for search engines. Tools like Google PageSpeed Insights, GTmetrix, Pingdom, and YSlow flag query strings on static resources as a performance issue. Removing them can:
✅ Improve your website performance score
✅ Enable better proxy and CDN caching
✅ Reduce page load time for returning visitors
✅ Contribute to better SEO rankings
✅ Improve overall user experience
How It Works
Once activated, the plugin hooks into WordPress’s built-in script_loader_src and style_loader_src filters and silently removes all query string parameters from your local CSS and JS URLs — on the frontend only. The WordPress admin dashboard is never affected.
No setup required. No settings page. Just install, activate, and you’re done.
Features
Removes all query string parameters from local CSS and JS URLs (not just ?ver)
Safely ignores external resources to avoid breaking third-party scripts and APIs
Strictly targets files ending in .css and .js to protect dynamic PHP scripts enqueued as styles/scripts
Works automatically on activation — no configuration needed
Frontend-only — does not affect the WordPress admin area
Extremely lightweight — zero impact on page generation time
Compatible with all themes and plugins
Learn more about Query Strings on Wikipedia
Upgrade to Pro
Get even faster load times and more advanced features with Pro!
Advanced Caching & Compression: Browser Caching with 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 Pro!
