PageSpeed ​​issued information on checking caching:

If you specify the date or expiration date of static resources in the HTTP headers, the browser will download the resources already received from the local disk and not from the Internet.

Use the browser's cache for the following resources: http://code.jivosite.com/script/widget/168019 (expiration is not specified) https://mc.yandex.ru/metrika/watch.js (60 minutes) http: / /www.google-analytics.com/analytics.js (2 hours)

Tell me how to configure caching for these scripts if they are not on the server? Maybe they need to output in a separate JS file and cache it? (Although I think it is stupid because judging by the address, the server addresses them from the beginning)

  • You can try to look for a CDN server with these scripts. - Makarenko_I_V
  • @Makarenko_I_V 6 And what will it give me? You can paint the order, how to do it! - ggLike
  • one
    If you use the CDN server and take the scripts from them, then you will not have problems with caching. Since this is the essence of the CDN server, it puts out the correct headers, and as soon as the original script changes, it will flood the new one. But in general, Google says once you use third-party scripts, smother with it. These are just recommendations, not rules. - Makarenko_I_V

0