Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Chris Dillon

    (@cdillon27)

    I recommend this technique:
    https://paulund.co.uk/remove-query-string-stylesheets

    Be aware:

    The reason why WordPress adds a version number to the end of the URLs is for updates, once WordPress is updated to a new version then this new version number will be added to the end of the URL. If any of the JavaScript or stylesheet files have changed in this update then the new version number will ensure that the browser fetches the latest version and not the version stored in the browser cache.

    Thread Starter bdtmurcia

    (@bdtmurcia)

    hi,
    (apologies for my English)

    I added this function, but the query string is not deleted.

    /* Eliminar QUERY STRING de las url de los recursos estáticos */
    function pu_remove_script_version( $src ) {
    return remove_query_arg( array( ‘v’, ‘ver’, ‘version’ ), $src );
    }
    add_filter( ‘script_loader_src’, ‘pu_remove_script_version’ );
    add_filter( ‘style_loader_src’, ‘pu_remove_script_version’ );

    Thank you for your response.
    José Carlos.

    Plugin Contributor Chris Dillon

    (@cdillon27)

    It worked for me:

    https://www.screencast.com/t/eP8GSnSkxh5

    If you are using a caching plugin, try clearing your cache.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘query string fontawesome’ is closed to new replies.