Home Plugins cache external scripts
Cache External Scripts logo

Cache External Scripts

by Voorsie on WordPress.org

Save the Google Analytics file (gtag.js / analytics.js) locally to be able to cache it for longer than 2 hours for a better PageSpeed score!

(25)
Fix this last Google Pagespeed problem

Fix this last Google Pagespeed problem

Often when trying to optimize the Google Pagespeed score, there is one script which still causing the ‘Leverage browser caching’ rule popping up: Google’s own gtag.js and/or analytics.js file…

With this plugin you will be able to cache this file on your local server and enable browser caching for longer than 2 hours. The plugin will check every day if there is a newer version of the file to keep the cache up to date.

Active installations1K+
Weekly downloads
22-8.33%
Version0.4
Last updated5/11/2019
WordPress version3.0.1
Tested up to5.2.21
Tags
cachecachinggoogle analyticsjavascriptsscripts