| 开发者 | rinkuyadav999 |
|---|---|
| 更新时间 | 2026年7月11日 12:42 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
?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:
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
?ver).css and .js to protect dynamic PHP scripts enqueued as styles/scriptswp-remove-query-strings-from-static-resources folder to /wp-content/plugins/ on your server.No. This plugin works automatically as soon as you activate it. There are no settings to configure.
No. The plugin only runs on the frontend of your website. The admin dashboard is completely unaffected.
It removes all query string parameters from CSS and JS URLs — including ?ver=, ?v=, ?timestamp=, and any other parameters. It is not limited to just ?ver=.
No. Removing query strings from static resources is a safe and widely recommended performance optimization. Your CSS and JS files will still load correctly.
Yes. It is compatible with all caching plugins.
Yes. Tools like Google PageSpeed Insights, GTmetrix, Pingdom, and YSlow flag query strings on static resources as a performance issue. Removing them helps improve your score.
Please open a support topic on the WordPress.org support forum and we will be happy to help.
.css and .js files are processed, protecting dynamic PHP scripts.strtok() with explode() to prevent conflicts with other plugins and WordPress core loops.