Hello,
I have cheke my site in pingdom.com
and get: https://snag.gy/WlUODb.jpg
so, I need to Remove the query string and encode the parameters into the URL
can I add the cod in functions.php in my wp-admin?
is it will be enough or I need to do it also on CPanel?
//remove quary strings
function _remove_script_version( $src ){
$parts = explode( ‘?’, $src );
return $parts[0];
}
add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 );
add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );
Best Regards
Orna