- This topic has 1 reply, 2 voices, and was last updated 7 years, 4 months ago by
Tom.
-
AuthorPosts
-
November 27, 2015 at 3:49 pm #156160
sheik
Hi,
I using gtmetrix to optimize my site.
I’m getting the warning shown below.
I google and tried adding the following to my child function.pdp but it does not resolve the issue.
Any idea I can try?Code I added to function.php
function ewp_remove_script_version( $src ) { return remove_query_arg( 'ver', $src ); } add_filter( 'script_loader_src', 'ewp_remove_script_version', 15, 1 ); add_filter( 'style_loader_src', 'ewp_remove_script_version', 15, 1 );
Warning I get from gtmetrix:
Remove Query String From Static Resources.
Resources with a “?” in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:
http://108.167.189.77/~frontier/wp-content/plugins/addthis/css/output.css?ver=4.3.1
http://108.167.189.77/~frontier/wp-content/plugins/content-views-query-and-display-post-page/assets/bootstrap/css/bootstrap.custom.css?ver=3.3.0
http://108.167.189.77/~frontier/wp-content/plugins/content-views-query-and-display-post-page/public/assets/css/public.css?ver=1.7.2
http://108.167.189.77/~frontier/wp-content/plugins/gp-premium/addons/generate-blog/functions/css/style.css?ver=4.3.1
http://108.167.189.77/~frontier/wp-content/plugins/gp-premium/addons/generate-menu-plus/functions/css/headhesive.css?ver=4.3.1
http://108.167.189.77/~frontier/wp-content/plugins/gp-premium/addons/generate-menu-plus/functions/css/sliiide.css?ver=4.3.1
http://108.167.189.77/~frontier/wp-content/plugins/gp-premium/addons/generate-secondary-nav/functions/css/mobile.css?ver=1.0.1
http://108.167.189.77/~frontier/wp-content/plugins/gp-premium/addons/generate-secondary-nav/functions/css/style.css?ver=4.3.1
http://108.167.189.77/~frontier/wp-content/themes/generatepress/css/font-awesome.min.css?ver=4.4.0
http://108.167.189.77/~frontier/wp-content/themes/generatepress/css/mobile.css?ver=1.3.20
http://108.167.189.77/~frontier/wp-content/themes/generatepress/css/superfish.css?ver=1.3.20
http://108.167.189.77/~frontier/wp-content/themes/generatepress/css/unsemantic-grid.min.css?ver=1.3.20
http://108.167.189.77/~frontier/wp-content/themes/generatepress/style.css?ver=1.3.20
http://108.167.189.77/~frontier/wp-content/themes/generatepress_child/style.css?ver=1448591412November 27, 2015 at 3:52 pm #156161Tom
Lead DeveloperLead DeveloperHi there,
Try this plugin: https://wordpress.org/plugins/query-strings-remover/
Installing it will remove all of the query strings (added by WordPress) and boost your speed scores.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.