Answer the question
In order to leave comments, you need to log in
How to remove "?ver=" from the file name?
Good afternoon!
CMS Wordpress and there are embedded emoticons in it. They are pulled by a script (if I understand correctly)
https://site.com/wp-includes/js/wp-emoji-release.m... I
use CDN for all content, including js
The GTmetrix service tells me the following:
Using a CDN YSlow doesn't recognize? Specify your CDNs in your User Settings.
There are 4 static components that are not on CDN.
https://site.com/wp-includes/js/wp-emoji-release.min.js?ver=4.7.2
Answer the question
In order to leave comments, you need to log in
versions are removed like this
function remove_version_from_style_js($src) {
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_version_from_style_js' );
add_filter( 'script_loader_src', 'remove_version_from_style_js' );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question