XF 2.1 Caching woff2 files?

Hristo Avramov

Active member
Hello,
Do you suggest to cache the woff2 files that are style files? I got recommendation from google test speed to cache it.
Just wanted to know your opinion.
 
Your question is confusing (at least to me).

Yes, you should absolutely set a far future Expires/Cache-Control: max-age header for resources like JS, CSS, Images, Fonts.
 
Your question is confusing (at least to me).

Yes, you should absolutely set a far future Expires/Cache-Control: max-age header for resources like JS, CSS, Images, Fonts.
Where can we set this? Because i also need to cache some files like styles(css), functionalities(js) and fotns(woff2).
 
Where can we set this? Because i also need to cache some files like styles(css), functionalities(js) and fotns(woff2).
In htaccess

Code:
<ifModule mod_expires.c>
     ExpiresActive On
     ############################################
     ## Add default Expires header
     <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|woff2)$">
     ExpiresDefault "access plus 1 year"
     </FilesMatch>
     </ifModule>
 
Back
Top Bottom