Child pages
  • [caching] Custom fonts not being cached [5.2.2-B1]
Skip to end of metadata
Go to start of metadata

In-Portal comes with ".htaccess" file, which allow to preconfigure Apache web server for best performance. Part of set "1 month" expiration for assets (images, css, js, icons).

Turns out that there are more assets, that aren't covered:

  • fonts (svg, eot, otf, ttf, woff)
  • svg images

Solution

Add this to ".htaccess" file:

ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/x-font-opentype "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType application/font-woff "access plus 1 month"

Related Tasks

INP-1703 - Getting issue details... STATUS