• Hello! I’ve been having a problem with woff2 files for about a year now. I get about 90 on mobile and 98 on pc in pagespeed score. Still I can’t get the woff2 files to cache!
    It says “0 days” cachetime on these two:

    https://mobilmeckaren.se/wp-content/themes/hestia/assets/font-awesome/webfonts/fa-brands-400.woff2
    
    https://mobilmeckaren.se/wp-content/themes/hestia/assets/font-awesome/webfonts/fa-solid-900.woff2

    I’ve tried both `

    Web Open Font Format (WOFF) 1.0
        ExpiresByType application/font-woff                 "access plus 1 month"
        ExpiresByType application/x-font-woff               "access plus 1 month"
        ExpiresByType font/woff                             "access plus 1 month"
    
        # Web Open Font Format (WOFF) 2.0
        ExpiresByType application/font-woff2                "access plus 1 month"
        ExpiresByType font/woff2

    in the htaccess file and also

    <FilesMatch "\.(woff2)$">
       Header set Cache-Control "max-age=691200"
      </FilesMatch>
    • This topic was modified 4 years, 11 months ago by SimonSvensk.
    • This topic was modified 4 years, 11 months ago by SimonSvensk.
    • This topic was modified 4 years, 11 months ago by SimonSvensk.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Seems like your headers are correct to me, and the woff2 files are caching properly in the browser. At least, when I view them on your site through Chrome Inspector everything appears correct.

Viewing 1 replies (of 1 total)
  • The topic ‘Stupid htacess!’ is closed to new replies.