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
.cssand.jsto 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.
