• Resolved Sn00z389

    (@webmakers2011)


    Hello,

    I have a strange problem. I have 3 websites hosted on same LiteSpeed server and with same configuration on the settings panel. However one of them always shows an error in PageSpeed that the fonts are not compressed.

    I checked the .htaccess of all files and the only difference was that on this website the LSCache is not adding these lines:

    ### marker CORS start ###
    <FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font\.css)$”>
    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin “*”
    </IfModule>
    </FilesMatch>
    ### marker CORS end ###

    I tried to add them manually but it keeps refreshing the file when I make any change and keeps deleting it.

    Can you suggest what can be the issue?

    Thank you,
    Best Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please provide the report number for the site in question ?

    Best regards,

    Thread Starter Sn00z389

    (@webmakers2011)

    Thanks for the fast response,

    my report number is: KZCSPRQT

    • This reply was modified 5 years, 4 months ago by Sn00z389.
    Thread Starter Sn00z389

    (@webmakers2011)

    Sorry I have accidentally added the report number of one of our other websites the right one is: KZCSPRQT

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I just ran your site with pagespeed, but didn’t see the font issue you mentioned ?

    May I know how and where you did test ?

    Best regards,

    Thread Starter Sn00z389

    (@webmakers2011)

    Yes, just now I saw that it is not getting the error as it did previously.

    But still this code is missing from the .htaccess for some reason

    ### marker CORS start ###
    <FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font\.css)$”>
    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin “*”
    </IfModule>
    </FilesMatch>
    ### marker CORS end ###

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    That rule is only added when you have CDN enabled in which you don’t have CDN set up on this site.

    Best regards,

    Thread Starter Sn00z389

    (@webmakers2011)

    Thank you,
    yes, on the other ones there is a cdn.

    Best Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘No font compression to one of my websites’ is closed to new replies.