New managed policies available for external domain services
Cloud.gov is happy to announce that we have added support for using AWS managed cache policies and managed origin request policies when creating and updating external domain CDN services.
Managed cache policies
One of the benefits of external domain CDN services is caching, which can reduce load on your origin server by responding to requests with content served directly from the cache.
CloudFront, the underlying AWS service for external domain services, offers many options for controlling how and when content from your origin server is cached.
To simplify the management of your CloudFront distribution’s caching behavior, AWS offers managed cache policies.
The following managed cache policies are now supported for external domain CDN services:
Managed-CachingDisabled
Managed-CachingOptimized
Managed-CachingOptimizedForUncompressedObjects
UseOriginCacheControlHeaders
UseOriginCacheControlHeaders-QueryStrings
To specify a cache policy when creating a new CDN service:
cf create-service external-domain domain-with-cdn \
-c '{"cache_policy": "Managed-CachingOptimized"}'
Please refer to the external domain services page for further documentation of the behavior of the cache_policy
parameter.
Managed origin request policies
CloudFront offers the ability to specify which properties (headers, cookies, query parameters) are included when forwarding a request to an origin server.
To simplify the configuration of which request properties are forwarded from CloudFront to an origin server, AWS offers managed origin request policies.
The following origin request policies are supported for external domain CDN services:
To specify an origin request policy when creating a CDN service:
cf create-service external-domain domain-with-cdn \
-c '{"origin_request_policy": "Managed-AllViewer"}'
Please refer to the external domain services page for further documentation of the behavior of the origin_request_policy
parameter.