Search code examples
cachingpagespeed

Can I cache external scripts locally on my server?


I am working on improving my Pagespeed score. One problem I am running into is that pagespeed is suggesting me "Leverage Browser Caching" for Google adsense scripts.

These scripts are external. So my question is... Is it even possible to cache external scripts on my server ???


Solution

  • No, you cannot change the cache lifetime for resources from other domains. However, there may be something you can do: Are you using the asynchronous version of AdSense? That should improve your sure speed. See more information: https://support.google.com/adsense/answer/3221666?hl=en