unknownlolz or anyone can you help me with one last thing. its about my website can you help me with the errors that i find during https://tools.pingdom.com/. you can provide me your email so that you can help me.
Remove query strings from static resources & Specify a Vary: Accept-Encoding header
This is my website https://www.freesolarplan.ml/ & tested with https://tools.pingdom.com
that’s all fine !
I see you have replaced logo from infinityfree - thx
you’re using cloudflare and you are running “minifier” and rocket loader
rocket loader (beta) If every script works well then you can leave it on
if there are problems then https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-my-script-s-in-Automatic-Mode-
your first byte is slow WebPageTest Test - WebPageTest Details
so it was with me as long as I did not turn off the rocket loader
so you try to test them a couple of times (with and without RL + purge cache after the change)
@Xceleron said:
Remove query strings from static resources & Specify a Vary: Accept-Encoding header
This is my website https://www.freesolarplan.ml/ & tested with https://tools.pingdom.com
If you click the Vary: Accept-Encoding
suggestions, you see the resources are from Gravatar and Cloudflare. You can’t add headers to those services, so you can either ignore the suggestion or stop using those services.
As for why all your static resources have query strings, all I know is that they are caused by WordPress. Maybe someone with more in-depth WordPress knowledge can help you with that, or you can try to Google for yourself.
To Remove Query Strings form Static Resources like CSS & JavaScript, you only need to add a filter hook in functions.php file to modify Static Resources URLs i.e. CSS and JavaScript. Filter hooks (add_filter) are used to modify various types of internal data in WordPress.
Add the following code in your functions.php file to Remove Query Strings form Static Resources
//* TN - Remove Query String from Static Resources
function remove_css_js_ver( $src ) {
if( strpos( $src, ‘?ver=’ ) )
$src = remove_query_arg( ‘ver’, $src );
return $src;
}
add_filter( ‘style_loader_src’, ‘remove_css_js_ver’, 10, 2 );
add_filter( ‘script_loader_src’, ‘remove_css_js_ver’, 10, 2 );
Also, There are various plugins available in WordPress Repository. You can use following plugins if you do not want to use code:
#1 Remove Query Strings From Static Resources WP Plugin
#2 W3 Total Cache WP Plugin
#3 Query Strings Remover WP Plugin
mp3 or mp4 cache on cloudflare (maybe somebody needs it)
this is how you can check if works
console or network tab + click on file
Of course do not put a 1GB video on streaming
use specialized services for such things