Site logo

Archived topic

Optimize site

1 reply · Started by sheik on November 27, 2015

Viewing posts 1–2 of 2

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=1448591412

This archived topic is closed to new replies.