The following cached resources have a short freshness life - Google Fonts

Hi, I use https://tools.pingdom.com to check the speed of my website in WordPress, and I have F for Leverage caching, it says:

The following cached resources have a short freshness life. Indicate at least one week in the future for the following resources:

https://ssl.google-analytics.com/ga.js

https://fonts.googleapis.com/css?family=Droid+Sans

https://fonts.googleapis.com/css?family=Lora

https://fonts.googleapis.com/css?family=Merriweather+Sansrouble00,400,700

What else do I need to add to my .htaccess file? I already have this:

EXPIRES CACHING

ExpiresActive On

ExpiresByType image / jpg "access 1 week"

ExpiresByType image/jpeg " 1 "

ExpiresByType image/gif " 1 "

ExpiresByType image/png " 1 "

ExpiresByType text/css " 2 "

ExpiresByType application/pdf " 2 "

ExpiresByType text/x-javascript " 2 "

ExpiresByType/x-shockwave-flash " 2 "

ExpiresByType image/x-icon " 2 "

ExpiresDefault "2 "

ExpiresByType video/mp4 " 2 "

EXPIRES CACHING

+4
1

- / , Google 1 .

https://fonts.googleapis.com/css?family= , : https://fonts.gstatic.com/s/droidsans/v6/s-BiyweUPV0v-yRb-cjciPk_vArhqVIZ0nv9q090hN8.woff2

. , google, css. fonts.gstatic.com .

, :

<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="dns-prefetch" href="//ssl.google-analytics.com">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Droid+Sans|Lora|Merriweather+Sans:300,400,700">
<script src="//ssl.google-analytics.com/ga.js" async></script>

EDIT 12/2: , , - , Google , .

+5
source

Source: https://habr.com/ru/post/1659551/


All Articles