CSS Version numbers removable for PageSpeed/caching
-
Hello, first this has by go-to forum on all my sites now after leaving BBPress, excellent plugin!
I’ve noticed that when using a custom asgaros-theme, the included files such as style.css and widgets.css are producing a “?ver=___” at the end, which I noticed is actually hardcoded into the plugin at /forum-thememanager.php when producing the <link entries.
The problem is this causes caching issues and shows up on PageSpeed tests like GTMetrix.com and YSlow.
It’s actually managing to evade my Remove Query Strings function in functions.php:
/* Remove Query String from Static Resources */ function remove_cssjs_ver( $src ) { if( strpos( $src, '?ver=' ) ) $src = remove_query_arg( 'ver', $src ); return $src; } add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 ); add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
It also is evading W3 Total Cache’s similar removal. Can there be a way to make this optional? Right now I have manually removed these entries but it will require doing so with each plugin update.
Thanks for any input,
- The topic ‘CSS Version numbers removable for PageSpeed/caching’ is closed to new replies.