CDN Cache and WAF
CDN Cache and the Web Application Firewall (WAF) are key components of WEDOS.protection that work together to improve both performance and security. While caching helps deliver content faster and reduce server load, the WAF inspects incoming requests and blocks malicious traffic before it reaches the application.
To manage CDN cache and WAF in the WGP dashboard, select a domain and then navigate to either CDN Cache or WAF under the Domain details.

CDN Cache
CDN Cache stores copies of the website content on distributed proxy servers. When a visitor requests cached content, it can be delivered directly from the nearest edge location instead of the origin server.
This provides several benefits:
- Faster page load times for visitors.
- Reduced load on the origin server.
- Improved resilience during traffic spikes or attacks.
Caching is especially effective for static content such as images, stylesheets, scripts, and other files that do not change frequently.
How CDN Cache Works
When a request is received, WEDOS.protection first checks whether the requested content is already cached. If a valid cached version exists, it is served immediately. If not, the request is forwarded to the origin server, and the response may be cached for future requests.
Cache behavior is influenced by:
- Cache settings in WEDOS.protection.
- HTTP headers sent by the origin server.
- Cache rules defined for specific URLs or file types.
This allows caching to be optimized without breaking dynamic or personalized content.
Managing CDN Cache Settings
With the Start subscription and above you can enable/disable and purge CDN Cache. With the Advanced subscription and above you can adjust the following settings:
- CDN Cache Hold Time. Sets how long WGP keeps the CDN cache stored.
- CDN Cache After a Certain Number of Uses. Set the number of visits required to start caching.
- Purge CDN Cache. Clear the CDN cache on WGP for the website – useful when changes have been made to the static web content.
- CDN Cache Mode. Choose CDN File Caching to cache only specific file types which you specify. Choose CDN Static Content Caching* to cache all static content (default).
- CDN Cache Exemptions by URL. Manage URLs which are exempt from CDN cache.
- CDN Cache for Return Codes. Create a list of return codes to be cached and set the cache duration for each.

*It is important to note that the CDN Static Content Caching setting may cache dynamically generated pages (for example .php) if the server returns them with one of these HTTP return codes: 200 (OK), 302 (Found), 304 (Not Modified), 307 (Temporary Redirect), and 404 (Not Found).
Web Application Firewall (WAF)
The Web Application Firewall is designed to protect the website against common web attacks such as:
- SQL injection.
- Cross-site scripting (XSS).
- Malicious bots and scanners.
- Exploitation of known vulnerabilities.
The WAF analyzes incoming requests at the proxy level and blocks or challenges suspicious behavior before it reaches the web server.
How WAF Works
WEDOS.protection uses a combination of predefined security rules and data-driven analysis to identify malicious traffic patterns. These rules inspect request parameters, headers, URLs, and behavior patterns to detect potential threats.
With the Start and Advanced subscription plans, WAF works in AI Mode only. By upgrading to the Expert plan or higher, you can adjust the Paranoia Level which determines how aggressively WAF will filter web traffic for potential threats.

Performance and Security Working Together
CDN cache and WAF complement each other by handling different aspects of traffic management:
- CDN cache reduces load and speeds up delivery of legitimate content.
- WAF ensures that only safe and valid requests are allowed through.
Used together, these features help ensure the website remains fast, stable, and protected against common web-based attacks. By stopping malicious traffic early and serving cached content efficiently, WEDOS.protection helps maintain availability even during high traffic or attack scenarios.