# Protection – CDN Cache

> In this article, you will learn how the WEDOS Protection CDN cache works, how to set it up and troubleshoot common issues.

URL: https://kb.wedos.global/protection/cache/
Updated: 2026-05-19

In this article, you will learn:

- [How the WEDOS Protection CDN cache works](https://kb.wedos.global/protection/cache/#cdn)
- [How to set up CDN cache](https://kb.wedos.global/protection/cache/#setup)
- [Troubleshooting common issues](https://kb.wedos.global/protection/cache/#troubleshooting)
- [Frequently asked questions](https://kb.wedos.global/protection/cache/#faq)

---

## WEDOS Protection CDN Cache

WEDOS Protection caches content within its global network of proxy servers, which the web server returns with certain HTTP return codes, such as 200 (OK), 302 (Found), 304 (Not Modified), 307 (Temporary Redirect), and 404 (Not Found). It offers two configuration options:

- **CDN static content caching** doesn’t distinguish between cached file extensions and may cache dynamically generated pages (e.g. .php) if the server returns them with one of the listed codes and they are not specifically excluded from caching. This is the default setting for caching servers.
- **CDN file caching** focuses on caching specific file types based on their extensions. This mode is available in the Advanced plan and above, and allows you to [customize the list of cached extensions](https://kb.wedos.global/protection/cache/#mode).

The default **CDN static content caching** mode is more comprehensive and caches all content with the appropriate return codes. It is suitable for websites with a high volume of static content that want to maximize their performance. Website administrators who require precise control over the cached files, for example due to frequent content updates or specific performance requirements, will prefer to use **CDN file caching**.

The caching server keeps files in memory for 3 to 60 seconds, depending on the chosen plan. After this time, it asks the source server whether the content is still up-to-date. This short cache retention period is sufficient even for websites where the content is important, such as discussion forums.

> The [WEDOS Protection WordPress plugin](https://kb.wedos.global/protection/wordpress/) offers both local and CDN caching.

---

## CDN Cache Setup

To set up CDN cache, follow these steps:

1. Log into the [WEDOS Global admin panel](https://client.wedos.global/).
2. Select a domain (or [template](https://kb.wedos.global/protection/templates/)) to set up.
3. In the left menu, click **CDN Cache**.

![Access to WEDOS Protection CDN Cache settings](https://kb.wedos.global/wp-content/uploads/2025/02/image.png)

The available settings depend on the plan used:

- **Start and above:** [Enable/disable, purge cache](https://kb.wedos.global/protection/cache/#basics)
- **Advanced and above:** [Mode](https://kb.wedos.global/protection/cache/#mode), [Return Codes](https://kb.wedos.global/protection/cache/#return)
- **Expert and above:** [Exemptions](https://kb.wedos.global/protection/cache/#exemptions), [Hold Time](https://kb.wedos.global/protection/cache/#hold), [Threshold](https://kb.wedos.global/protection/cache/#threshold)

### Enable, Disable and Purge Cache

If content caching is causing problems that cannot be fixed in the code, you can turn it off at any time and turn it back on later.

If only the current cache status is problematic (for example, content that is not updated for some reason), simply purge it using the corresponding button.

![Controls for enabling/disabling and purging WEDOS Protection CDN cache](https://kb.wedos.global/wp-content/uploads/2025/02/image-1-1024x240.png)

### Cache mode

If you are using the Advanced plan and higher, you can choose a caching mode. For a detailed description of the features of the available modes, see the [WEDOS Protection CDN Cache](https://kb.wedos.global/protection/cache/#cdn) chapter.

You can find the **Behavior** selector in the **CDN Cache Mode** section. There are no additional settings available for the **CDN Static Content Caching** mode, selecting the **CDN File Caching** mode will open an interface for managing cached file extensions. This will allow you to:

- Add/delete a file extension or group.
- Enable/disable caching of the selected extension or group.

![Detailed CDN file caching settings](https://kb.wedos.global/wp-content/uploads/2025/02/image-2-1024x315.png)

> The default list of cached extensions is: .png, .css, .jpg, .jpeg, .ico, .js, .webp, .gif, .svg, .woff2.

### Return codes

If you are using the Advanced plan and higher, you can manage caching for return codes.

When **CDN Cache for Return Codes** is enabled you can:

- Add/delete a return code or group.
- Set hold time for each return code or group.
- Enable/disable caching of the selected extension or group.

![Return code cache settings](https://kb.wedos.global/wp-content/uploads/2025/02/image-3-1024x240.png)

### Exemptions by URL

If you are using the Expert plan and higher, you can manage cache exemptions by URL.

When **CDN Cache Exemptions by URL** is enabled you can add/delete a URL path to be exempted from CDN Cache.

![Cache exemptions by URL settings](https://kb.wedos.global/wp-content/uploads/2025/02/image-4-1024x243.png)

### Hold time

If you are using the Expert plan and higher, you can manage cache hold time.

When **CDN Cache Hold Time** is enabled you can adjust the length of time that WGP keeps the CDN cache stored. The minimum is 60, the maximum/default is 86400.

![Cache hold time settings](https://kb.wedos.global/wp-content/uploads/2025/02/image-5-1024x102.png)

### Threshold

If you are using the Expert plan and higher, you can manage cache threshold.

When **CDN Cache After a Certain Number of Uses** is enabled you can adjust the threshold for when the page will start caching for a specific visitor. The default is 1 visit.

![Cache threshold settings](https://kb.wedos.global/wp-content/uploads/2025/02/image-6-1024x102.png)

---

## Troubleshooting Common Issues

Common issues with WEDOS Protection CDN cache include:

- [Cached content doesn’t update](https://kb.wedos.global/protection/cache/#issue-old)
- [Disabling the cache doesn’t work](https://kb.wedos.global/protection/cache/#issue-disable)

### Outdated Cache Contents

**Issue:** Out-of-date content (such as an error message) remains in the cache.

**Solution:** [Purge the cache](https://kb.wedos.global/protection/cache/#basics) using the corresponding button in the administration panel.

### Disabling Cache Doesn’t Work

**Issue:** The cache is disabled, but the problem on the website persists.

**Cause:** The content may be cached elsewhere.

**Solution:** Make sure to clear all cached content. In the case of a browser, the keyboard shortcut `Ctrl+Shift+R` usually helps, and also check the cache settings in your content management system.

---

## FAQ

**If my content is already cached using on my web server, should I still use WEDOS Protection CDN?**

Usually, a web server caches content itself. WEDOS Protection caches content on special servers located around the world, ensuring faster response – the content is physically closer and does not use up the web server’s resources, which reduces load and enables it to serve more users at less expense.

**Is it possible to bypass the cache using query parameters?**

Yes, if you submit a yet uncached query parameter (such as `?q=something`) in the URL, you will receive uncached content from the server. In the event of an attack, there is a threshold from which the system disables these query parameters and only returns static pages.
