[wordpress插件] Cache External Scripts缓存外部脚本

wordpress 插件 文章 2020-03-15 10:50 460 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

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…

通常在尝试优化Google Pagespeed得分时,有一个脚本仍然会弹出“利用浏览器缓存”规则:Google自己的gtag.js和/或analytics.js文件…

With this plugin you will be able to cache this file on your local server and enable browser caching for longer than 2 hours.

使用此插件,您将能够在本地服务器上缓存此文件,并启用浏览器缓存超过2小时。

The plugin will check every day if there is a newer version of the file to keep the cache up to date.

该插件会每天检查文件是否有更新版本,以使缓存保持最新状态。

安装步骤

Installation is very easy;

安装非常容易;

    1. Upload the plugin directory cache-external-scripts to the /wp-content/plugins/ directory or install it directly from the WordPress plugin directory.
    2. 将插件目录 cache-external-scripts 上载到 / wp-content / plugins / 目录,或直接从WordPress插件目录安装。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Once the external script is cached by the plugin, it will automatically replace the url in your current Google Analytics code (meaning you can use your current Google Analytics plugin).
    6. 该插件缓存了外部脚本后,它将自动替换当前Google Analytics(分析)代码中的网址(这意味着您可以使用当前的Google Analytics(分析)插件)。

下载地址
https://downloads.wordpress.org/plugin/cache-external-scripts.0.4.zip
-EOF-

AI助手支持GPT4.0