Acquia recommends the following defaults for page caching rules in Edge CDN:
Respect Existing Headers
Respect Existing Headers
will honor the user-defined Expires
and
Cache-Control
headers. For more information, see Edge and Browser Cache TTL.
On occasion, an application may require a shorter Edge Cache TTL lifetime. If you reduce the amount of your Edge Cache TTL, be sure to change the Browser Cache TTL to the same value.
Edge CDN doesn’t enable Edge Cache TTL until the cache level is set. Select from the following available cache level options:
You should also configure Page Cache Maximum Age (the amount of time assets are cached in Varnish® and Drupal) to your desired value, typically 30 minutes to one day. Edge CDN will contact Varnish at most once per minute for updated copies of that asset.
If your content or assets have changed at origin (in your Drupal website), and you must update the cached copies of these assets before the Page Cache Maximum Age expiration date, Acquia recommends you use the Acquia Purge module.
After configuration, the Acquia Purge module will cause content updates to purge selected portions of Varnish cache. The next time Edge CDN requests the asset from Varnish, it will receive the newly updated content.
Important
Due to API limitations preventing website visitors from viewing updates to content, Acquia does not recommend using the CloudFlare Purge (cfpurge) module.
When purging caches on Edge CDN using the API or the dashboard, the
Cache-Tag
header (including whitespace and commas) must not exceed 255
bytes in total length after the header field name. If the supplied
Cache-Tag
header exceeds 255 bytes in length, only the tags in the first
255 bytes will be purged.