Hello there,
Recently I have switched my WordPress website to use LS Cache. LiteSpeed is super fast and currently my web page loads within 200 ms. Unfortunately there's some problems with FontAwesome and Fontello. Let me explain more.
When I have switched CSS minify and combine on (CSS loads asynchronously), I got six bad requests. GTmetrix, Pingdom Tools and Google Pagespeed Insights tells me that following URLs cannot be found (error code 404):
Here's part of htaccess -file where we see that woff -types are included with ExpiresByType:
When CSS minify process is disabled, this problem won't appear. Have anybody same kind of errors before? I use Fontello icons on my website. These icons are loaded properly. None of fontello icons are missing.
Recently I have switched my WordPress website to use LS Cache. LiteSpeed is super fast and currently my web page loads within 200 ms. Unfortunately there's some problems with FontAwesome and Fontello. Let me explain more.
When I have switched CSS minify and combine on (CSS loads asynchronously), I got six bad requests. GTmetrix, Pingdom Tools and Google Pagespeed Insights tells me that following URLs cannot be found (error code 404):
- (domain)/fonts/fontawesome-webfont.ttf?v=4.7.0
- (domain)/fonts/fontawesome-webfont.woff2?v=4.7.0
- (domain)/fonts/fontawesome-webfont.woff?v=4.7.0
- (domain)/fonts/fontello.ttf?72294633
- (domain)/fonts/fontello.woff2?72294633
- (domain)/fonts/fontello.woff?72294633
public_html/wp-content/themes/[theme]/css/fonts/
, /css/fontello/
and /css/fontawesome
Here's part of htaccess -file where we see that woff -types are included with ExpiresByType:
Apache config:
<FilesMatch "\.(pdf|ico|svg|xml|jpg|jpeg|png|gif|webp|ogg|mp4|webm|js|css|woff|woff2|ttf|eot)(\.gz)?$">
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType application/pdf A2592000
ExpiresByType image/x-icon A2592000
ExpiresByType image/vnd.microsoft.icon A2592000
ExpiresByType image/svg+xml A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType image/gif A2592000
ExpiresByType image/webp A2592000
ExpiresByType video/ogg A2592000
ExpiresByType audio/ogg A2592000
ExpiresByType video/mp4 A2592000
ExpiresByType video/webm A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000
ExpiresByType application/javascript A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType application/x-font-ttf A2592000
ExpiresByType application/font-woff A2592000
ExpiresByType application/font-woff2 A2592000
ExpiresByType application/vnd.ms-fontobject A2592000
</IfModule>
</FilesMatch>
Attachments
-
21.1 KB Views: 4
Last edited by a moderator: