Support

Admin Tools

#39477 Serve static assets with an efficient cache policy for font

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Thursday, 14 September 2023 10:35 CDT

deef

I use admin tools and it is very good for my website https://www.glansbeton.be

I have only one problem and that's the font's Serve static assets with an efficient cache policy

https://prnt.sc/S8o7jwKyFysU

As you can see there is no cache TTL

How can I solve this?

 

This is already in my .htacces

 

# Font files expiration: 1 year after request
	ExpiresByType application/font-woff "now plus 1 year"
	ExpiresByType application/font-woff2 "now plus 1 year"
	ExpiresByType application/vnd.ms-fontobject "now plus 1 year"
	ExpiresByType application/x-font-opentype "now plus 1 year"
	ExpiresByType application/x-font-ttf "now plus 1 year"
	ExpiresByType application/x-font-woff "now plus 1 year"
	ExpiresByType font/opentype "now plus 1 year"
	ExpiresByType font/otf "now plus 1 year"
	ExpiresByType font/ttf "now plus 1 year"
	ExpiresByType font/woff "now plus 1 year"
	ExpiresByType font/woff2 "now plus 1 year"

 

glansbeton.be  1e Partij   32 KiB
…roboto/roboto-v20-latin-700.woff2 (www.glansbeton.be) None 16 KiB
…roboto/roboto-v20-latin-regular.woff2 (www.glansbeton.be) None 16 KiB

nicholas
Akeeba Staff
Manager

Remember that ExpiresByType uses the MIME type, as determined by the web server, to set the expiration header. It appears that your web server does not know that .woff2 files have the MIME type application/font-woff2, therefore it does not "run" that line to set the expiration time of the file to one year in the future.

You need to contact your host and ask them to update their MIME type database.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!