XF 2.1 Caching woff2 files?

Hristo Avramov

Active member
Licensed customer
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).
 
A said before, contact your server admin (who, by definition of the job server admin) will be able to configure this.
We won't be able to help you as every server setup might be different - we don't even know which server software you are using (Apache? nginx? IIS? OpenLiteSpeed? LigHTTPd? H2O? There are so many ...)

 
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