Add local font files to nginx config (leverage browser caching)
Actually only the following files are served from nginx with proper HTTP headers for browser caching and character sets.
html|htm|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|bz2|pdf|odt|txt|tar|bmp|rtf|js|swf|avi|mp4|mp3|ogg|flv|svg
Please a local font files with the following extensions too:
eot/ttf/woff/woff2
Hey
Thanks for sharing your valuable feedback we have now expanded our static content list to the following extensions
html, htm, jpg, jpeg, gif, png, ico, css, zip, tgz, gz, bz2, pdf, odt, txt, tar, bmp, rtf, js, swf, avi, mp4, mp3, ogg, flv, svg, rar, wmv, htc, mpeg, mpg, otf, woff, woff2, ttf, , eot, webp
Regards
Cloudways Team
-
stokes commented
Adding caching support for font file extensions like eot, ttf, woff, and woff2 is a smart improvement for better website performance and faster font loading. Proper font optimization is especially important for stylish text and Unicode-based font websites like https://foontify.com/ where smooth typography and quick rendering improve the user experience.
-
Paul
commented
Would be great to add these file extensions. Speed test tools complain it all the time.