mime type woff & woff2
Hello everyone,
I noticed that in all our servers, we have to change the mime type of various extensions because the mime.types file supplied by EA3/EA4 is rather outdated.
To be more specific, woff2 does not exist in /etc/apache2/conf/mime.types, while woff does exist but it is wrong "application/x-font-woff" since it should be "application/font-woff".
Maybe EA4 could take the latest mime.types from CentOS 7 or something similar? It would be very helpful.
In case you are wondering why this is important, it is because a broken mime type causes the cache to fail, like a transparent proxy cache. It also causes havoc with htaccess that tries to set cookie/cache/gzip compression on files by type like AddOutputFilterByType.
Thank you.
-
Hello, EasyApache 4 should use /etc/mime.types: # grep mime /etc/cpanel/ea4/paths.conf file_conf_mime_types=/etc/mime.types
However, it's not using that file based on the default Apache configuration:# grep mime /etc/apache2/conf/httpd.conf TypesConfig conf/mime.types
Internal case EA-3773 is open to address this issue. I'll update this thread with more information on the status of this case as it becomes available. Thank you.0 -
That is great, thank you for your quick response, much appreciated! 0 -
Hello, To update, this is fixed in today's EasyApache 4 maintenance release: EA-3773 - mime.types paths are not matched in between paths.conf and httpd.conf: paths.conf: use correct value for file_conf_mime_types The full EasyApache 4 change log should be updated later today: EasyApache 4 Change Log 2018 - EasyApache 4 - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
3 comments