Skip to main content

Configuring the Default Behavior

When you create a service, the default behavior is automatically created for you and is part of your service. This behavior is applied to all service traffic. It is very similar to other behaviors, except that you can edit it but cannot delete it. The default policy is always applied to all traffic, and other behaviors can override it for smaller slices of traffic. Configuring the default behavior is very similar to creating a behavior. The default behavior defines the following actions:

  • Cache Behavior - Whether the content should be cached or not.
  • Cache TTL - The time duration that the CDN is allowed to keep the content in cache.
  • Cache Key - Defines the components of the cache key used to store objects in the CDN cache.
  • Status code cache 4xx/5xx - The time duration that the CDN is allowed to keep error responses in the cache.
  • Allowed Methods - The list of HTTP methods which are allowed for this service.
  • Compression - Whether the CDN should compress the content.
  • Cached Methods - The list of HTTP methods that the CDN will cache their responses.

To configure the default policy:

  1. Navigate to your service.
  2. Choose the Behaviors tab.
  3. Click the Edit icon of the Default behavior.
  4. Edit the action you would like to change or add additional actions.