• Resolved John

    (@dsl225)


    Hello,

    Although I now get excellent pagespeed results with your plugin enabled, i still get this remark that I’m unable to fully understand:

    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:…

    Is there a corresponding setting for resolving this?

    Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Hai Zheng?

    (@hailite)

    We will have remove query string in next release. But its only for internal css/js.

    Can you check your page source code and paste the resources with ? or leave the domain here so we can double check it to see if it can be solved in next release.

    Thread Starter John

    (@dsl225)

    Thanks for this.
    Here’s what I got from speedtest anylysis with this particular site.
    I just replaced the site’s name and left the remaining as it was:

    https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.min.css?ver=all
    https://website.com/wp-content/plugins/footnotes/css/public.css?ver=4.8.2
    https://website.com/wp-content/plugins/footnotes/js/jquery.tools.min.js?ver=4.8.2
    https://website.com/wp-content/plugins/highlight-search-terms/hlst-extend.min.js?ver=1.4.4
    https://website.com/wp-content/plugins/jetpack/css/jetpack.css?ver=5.3
    https://website.com/wp-content/plugins/jetpack/modules/photon/photon.js?ver=20130122
    https://website.com/wp-content/plugins/wordpress-content-filter/assets/css/colors/blue.css?ver=4.8.2
    https://website.com/wp-content/plugins/wordpress-content-filter/assets/css/style.css?ver=4.8.2
    https://website.com/wp-content/plugins/wp-typography/js/clean_clipboard.min.js?ver=5.0.4
    https://website.com/wp-content/plugins/wp-typography/js/jquery.selection.min.js?ver=5.0.4
    https://website.com/wp-content/plugins/wpfront-scroll-top/css/wpfront-scroll-top.min.css?ver=1.5
    https://website.com/wp-content/plugins/wpfront-scroll-top/js/wpfront-scroll-top.min.js?ver=1.5
    https://website.com/wp-content/themes/libretto-child/style.css?ver=4.8.2
    https://website.com/wp-content/themes/libretto/js/libretto.js?ver=20140331
    https://website.com/wp-content/themes/libretto/js/navigation.js?ver=20150115
    https://website.com/wp-content/themes/libretto/js/skip-link-focus-fix.js?ver=20130115
    https://website.com/wp-content/themes/libretto/js/touche.js?ver=1
    https://website.com/wp-content/themes/libretto/style.css?ver=4.8.2
    https://website.com/wp-includes/css/dashicons.min.css?ver=4.8.2
    https://website.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1
    https://website.com/wp-includes/js/jquery/jquery.js?ver=1.12.4
    https://website.com/wp-includes/js/jquery/ui/core.min.js?ver=1.11.4
    https://website.com/wp-includes/js/jquery/ui/datepicker.min.js?ver=1.11.4
    https://website.com/wp-includes/js/jquery/ui/mouse.min.js?ver=1.11.4
    https://website.com/wp-includes/js/jquery/ui/slider.min.js?ver=1.11.4
    https://website.com/wp-includes/js/jquery/ui/widget.min.js?ver=1.11.4
    https://website.com/wp-includes/js/wp-embed.min.js?ver=4.8.2
    https://website.com/wp-includes/js/wp-emoji-release.min.js?ver=4.8.2
    https://s0.wp.com/wp-content/js/devicepx-jetpack.js?ver=201739

    Add this to your functions.php

    // Remove query string from static files
    function remove_cssjs_ver( $src ) {
     if( strpos( $src, '?ver=' ) )
     $src = remove_query_arg( 'ver', $src );
     return $src;
    }
    add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
    add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );

    Hope it help.

    Thread Starter John

    (@dsl225)

    Thanks for this but can this have any adverse effect on those files or plugins they belong to?

    Plugin Support Hai Zheng?

    (@hailite)

    You don’t have to do that manually. Our next release has already had this feature. Please wait for next release and see if your pagespeed score can be higher.

    Thread Starter John

    (@dsl225)

    That’s fine then, many thanks!

    Thread Starter John

    (@dsl225)

    I just updated the plugin, emptied cache and run tests again but getting exactly the same notice at speed test sites.

    UPDATE – sorry, problem solved: I just noticed there is a specific setting for this under optimize tab!

    Plugin Support Hai Zheng?

    (@hailite)

    Can you share your previous score and current score? We are glad to see it.

    Thread Starter John

    (@dsl225)

    Sorry didn’t keep the previous one so can’t really compare.
    As far as I can see the big change is with Yslow.
    In any case, your plugin is really doing a great job!

    Plugin Support Hai Zheng?

    (@hailite)

    Thanks.

    Enjoy!

    The remove query strings error does not go away even though the option is turned on within the plugin. adding the code in functions.php only works if litespeed cache is deactivated

    Plugin Support Hai Zheng?

    (@hailite)

    After turn on the option, you need to do a purge all.

    That doesn’t work either

    Thread Starter John

    (@dsl225)

    In my case this option created a lot of problems with php files and plugins and I had to deactivated it.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Pagespeed test remarks’ is closed to new replies.