Mobile app version of vmapp.org
Login or Join
Speyer207

: Leverage browser caching - setting short freshness lifetime I have set up expiry dates for my web resources in my .htaccess: <IfModule mod_expires.c> ExpiresActive On # Uncomment to apply to

@Speyer207

Posted in: #Cache #Expiry #GooglePagespeed #PageSpeed #Performance

I have set up expiry dates for my web resources in my .htaccess:

<IfModule mod_expires.c>
ExpiresActive On
# Uncomment to apply to resources that are not listed #ExpiresDefault "access plus 1 month"

ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"

ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"

ExpiresByType application/x-font "access plus 1 month"
ExpiresByType application/x-font-opentype "access plus 1 month"
ExpiresByType application/x-font-otf "access plus 1 month"
ExpiresByType application/x-font-truetype "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"

ExpiresByType application/pdf "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"

ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
ExpiresByType video/mpeg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/quicktime "access plus 1 month"
ExpiresByType video/x-ms-wmv "access plus 1 month"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType audio/x-wav "access plus 1 month"
ExpiresByType audio/mpeg "access plus 1 month"
</IfModule>


When I run a speed test I get the following message:



Most of these files look like fonts from Google API, what can I do about these files? How do I set expiry dates for some of these files?

Thanks

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Speyer207

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme