N
N
nepster-web2016-09-01 12:08:53
Nginx
nepster-web, 2016-09-01 12:08:53

Browser cache. How to cache resources with maps.googleapis?

I turned on the cache for the browser, I check at https://developers.google.com/speed/pagespeed/insights/ and I see something like this:
a366d13292fa4733ab852d1b4c790619.png
Please tell me how can I close this issue?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-09-01
@nepster-web

Exactly the same as caching Google analytics scripts or Yandex metrics:
download the script,
put it locally on the server,
load locally from the server like this site.ru/js/script.1.js,
give it with the headings "keep forever",
write the task in cron, so that it periodically downloads the script again from their server, when updating, it changes the name to script.%version%.js
Try to search in Google, don't be lazy.
There are even ready-made pieces of code for all this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question