• Hi,

    pingdom tools says :
    ” 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:
    https://artandscores.com/wp-content/plugins/social-warfare/fonts/sw-icon-font.woff?ver=2.3.2
    MORE AT GOOGLE DEVELOPERS ”

    Here is the answer: https://perfmatters.io/docs/remove-query-strings-from-static-resources

    social-warfare/functions/frontend-output/header-meta-tags.php

    Just put into lines 86 – 92:

    // Echo it if we’re using the Admin Head Hook
    echo ‘<style>@font-face {font-family: “sw-icon-font”;src:url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.eot”);src:url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.eot?#iefix”) format(“embedded-opentype”),url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.woff”) format(“woff”),
    url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.ttf”) format(“truetype”),url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.svg?#1445203416”) format(“svg”);font-weight: normal;font-style: normal;}</style>’;
    else :

    // Add it to our array if we’re using the froSntend Head Hook
    $info[‘html_output’] .= PHP_EOL . ‘<style>@font-face {font-family: “sw-icon-font”;src:url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.eot”);src:url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.eot?#iefix”) format(“embedded-opentype”),url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.woff”) format(“woff”), url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.ttf”) format(“truetype”),url(“‘ . SWP_PLUGIN_URL . ‘/fonts/sw-icon-font.svg?#1445203416”) format(“svg”);font-weight: normal;font-style: normal;}</style>’;

    Regards.

The topic ‘Remove Query String’ is closed to new replies.