Rules Engine can be used to override and/or extend the CDN configuration defined in the MCC and the response headers defined by a web server (e.g., Apache or IIS).
Web Server (Customer Origin): A web server can define response headers that will be associated with assets requested through our CDN. Rules Engine can override the values assigned to these response headers.
Additionally, a web server can define a cache policy for the requested content through certain key response headers. Rules Engine can override this cache policy with a custom cache policy for content served through the CDN.
MCC: The MCC defines how assets may be accessed through the CDN. Rules Engine may be used to customize the actions that will take place when your content is requested.
For example, a rule may prevent users from a particular country or region from requesting content from a customer origin.
Rules Engine will not override the configuration defined for the following features:
The above features secure content by directory. This configuration takes precedence over instructions provided in a rule.
It is recommended to configure the above features solely within Rules Engine. This type of configuration maximizes flexibility and reduces complexity.
This example demonstrates how Rules Engine may be used to extend the behavior of Token-Based Authentication.
It assumes the following CDN configuration:
Feature | Configuration |
---|---|
Token-Based Authentication |
Secures the following path: /marketing/secure
|
Rules Engine |
|
Based on this configuration, the CDN will secure content as indicated below.
In this scenario, valid tokens are still required for assets that support HTML pages (e.g., JS, CSS, images, etc.) that are not secured by Token-Based Authentication.
Edge server compression should only be configured through either Rules Engine's Compress File Types feature or the Compression page.
Attempting to configure edge server compression through both Rules Engine and the Compression page will create an invalid configuration that will not be applied to your account. Furthermore, no additional configuration changes will be applied to your account until this conflict is resolved.
Edgecast CDN