WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Voorsie v0.4

Cache External Scripts

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!

Cache External Scripts

The facts

Rating
5★ from 25
Active installs
800+
Price
Free
Last updated
11 May 2019
Added
Nov 2015
Requires WP
3.0.1
Tested up to
WP 5.2.26
Downloads
32,054

Our analysis

AI-assisted

Cache External Scripts is a WordPress plugin designed to improve the Google Pagespeed score by caching external scripts, specifically Google's gtag.js and analytics.js files. By caching these files on your local server, it allows for browser caching that exceeds the default duration of 2 hours.

The plugin checks daily for updates to ensure that the cached version remains current. It is suitable for website owners looking to enhance their site's performance and speed by optimising how external scripts are handled.

Best for: Website owners aiming to improve performance and speed through better script management.

What it does well

  • Caches Google's gtag.js and analytics.js files locally
  • Enables longer browser caching than the default 2 hours
  • Checks daily for updates to keep the cache current

Where it falls short

  • Limited information on additional features or functionality

Verdict

Cache External Scripts offers a straightforward solution for caching specific external scripts. It may be beneficial for those focused on optimising their Google Pagespeed score.

From the developer

Voorsie's own description of Cache External Scripts, lightly tidied.

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.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for making sites fast.

WP-Optimize

Get caching and more with this powerful cache plugin. Cache, optimize images, clean your database and minify f...

Free 1M+ installs 4.8★ (2,606)
LiteSpeed Cache

All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...

Free 7M+ installs 4.8★ (2,764)
EWWW Image Optimizer

Comprehensive image optimization with WebP, AVIF, Lazy Load, and more. Optimize images automatically for Faste...

Free 1M+ installs 4.8★ (1,838)
Under Construction

Easy to use Under Construction Page & Coming Soon Page. Enable Under Construction Mode in seconds & sh...

Free 600k+ installs 4.8★ (1,285)
Smush

Smush

93

Compress and optimize images, enable lazy load, serve WebP & AVIF, and speed up your site with a global im...

Free 1M+ installs 4.8★ (6,051)
Converter for Media

Speed up your website by using our WebP & AVIF Converter. Optimize images and serve WebP and AVIF images i...

Free 500k+ installs 4.9★ (1,097)