跳到内容

GDPR Cache Scripts & Styles

v1.0.7

Philipp Stracker · 2022年9月15日 上架

Greatly enhances privacy of your website by embedding external scripts and styles.

正在使用
100+
评分
5.0 / 5
累计下载
4,379
最近更新
2023年1月25日
1 条评价需要 WordPress 5.8+已测试到 6.0.19PHP 7.2+

截图

Without this plugin: A website uses a Google Font, and the visitor's browser connects to 2 external servers.
Without this plugin: A website uses a Google Font, and the visitor's browser connects to 2 external servers.
With this plugin: The Google Font files are saved to your website and served locally. No request to Google's server is made! In this screenshot, we show the ".ttf" fonts in Chrome, which proves that Google has no idea about our browser.
With this plugin: The Google Font files are saved to your website and served locally. No request to Google's server is made! In this screenshot, we show the ".ttf" fonts in Chrome, which proves that Google has no idea about our browser.
The options-page displays a list of all cached files and gives the option to invalidate all files.
The options-page displays a list of all cached files and gives the option to invalidate all files.

One-click solution to automatically serve external assets from your local website.

No configuration and no coding required – activate the plugin and forget about it.

1. Disclaimer

This plugin does not provide any guarantees of making your website GDPR-compliant. As a website operator, you are always responsible to verify if this plugin works for you and collect consent for external scripts before loading them in the visitor’s browser.

2. How it works

Short: External files are downloaded to your WordPress installation (into the uploads-folder) and then served from there.

More details:

The plugin scans every URL that is enqueued via wp_enqueue_script() and wp_enqueue_style(). When detecting an external URL, that file is saved to your uploads-folder and served from there.

It also scans the contents of CSS files for external dependencies and also saves those files to your uploads-folder!

Heads-up: For technical reasons, we cannot scan the contents of JS files for such dependencies – JS files can always inject external assets

No Output Buffer:

This plugin does not add any “output buffering” but scans the URLs which are enqueued via recommended WordPress functions.

As a result, GDPR Cache Scripts & Styles has practically no performance impact on your response time, no matter how big your website is.

Background worker:

To speed up your website’s loading time, all assets are downloaded in a background process: When a new asset is detected, or a cached file expires, a worker-task is enqueued.

The queue is then processed in an asynchronous process; while the queue is processed, your website could still serve the external assets for a while – usually the queue is processed within one or two minutes.

3. Options Page

You’ll find the plugin options page at “Tools > GDPR Cache”. On that page you can refresh and purge your website’s cache.

Here you can also review a full list of all files that are locally cached, and review the expiration date of each file – when a file expires, the plugin downloads a new version of it from the remote server.

Additionally, when you deactivate the plugin, the entire cache is purged (all files are deleted and relevant DB values are reset)

4. Tested with

We’ve tested this plugin with the following themes and plugins:

Most other plugins and themes will work with this plugin as well. If you encounter any issues, please let us know, so we can improve this plugin 👍

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums