0

I'm using apache 2 and have set caching directives as follows in the virtual servers conf file:

<FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|woff2)$"> Header set Cache-Control "ETag, public" </Filesmatch>

This seems to be working ok apart from caching the woff2 font, I've tried everything in the following thread: Correct Apache AddType directives for font MIME types

Google Page Speed still reports the fonts as un-cached however. The directives in the quoted thread were added without removing woff2 from the ETag cache control if that would make any difference.

Site in question is: https://dmmblitz.com

Server version: Apache/2.4.41 (Ubuntu)

1 Answer 1

0

Replace ETag with max-age=31536000 (for a user caching TTL = 1 year)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.