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)

1cloud
  • 1
  • 1

1 Answers1

0

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

jamacoe
  • 173
  • 1
  • 7
  • The ETag works fine with other file types, the issue is related to this rather than cache control? – 1cloud Aug 19 '22 at 11:14