When you create a service, a Default Behavior is automatically created as part of your service.
The Default Behavior applies to all service traffic. It works similarly to other behaviors, with the exception that it can be edited but cannot be deleted.
Other behaviors can override the Default Behavior for specific portions of traffic based on their configured conditions.
Configuring the Default Behavior is very similar to creating a behavior.
By default, the behavior defines the following actions:
- Cache Behavior – Determines whether the content should be cached.
- Cache TTL – Defines how long the CDN is allowed to keep content in the cache.
- Cache Key – Defines the components of the cache key used to store objects in the CDN cache.
- Status Code Cache 4xx/5xx – Defines how long the CDN is allowed to keep error responses in the cache.
- Allowed Methods – Defines the list of HTTP methods allowed for the service.
- Compression – Determines whether the CDN should compress the content.
- Cached Methods – Defines the HTTP methods whose responses the CDN will cache.
Configuring the Default Behavior #
To configure the Default Behavior:
- Navigate to your service.
- Select the Behaviors tab.
- Click the Edit icon for the Default Behavior.
- Edit the actions you want to change or add additional actions as required.