For the complete documentation index, see llms.txt. This page is also available as Markdown.

Integrating Dynamic CDN Resource

After creating a Dynamic CDN Resource, configure caching, SSL, and DNS before directing production traffic through the CDN.

Before updating your DNS records, verify that your Dynamic CDN Resource is working correctly.

Configure caching

Configure how the CDN caches dynamic and static content.

1

Open your Dynamic CDN Resource and select the Caching tab.

2

Configure the Cache Settings section.

Select one of the following cache types:

  • Origin — Uses the Cache-Control headers returned by your origin server.

  • Edge — Uses a cache duration configured in the CDN.

If you select Edge, specify:

  • Cache Expiration

  • Whether to Cache Dynamic Pages

Save your changes.

3

Configure Query String Caching.

Choose whether query strings create separate cache entries or are ignored during caching.

Exclude sensitive pages from caching

If Cache Dynamic Pages is enabled, HTML pages can also be cached.

Exclude pages containing personalized or sensitive information, such as:

  • User account pages

  • Checkout pages

  • Payment pages

  • Profile pages

You can bypass caching using one of the following methods:

Option 1: Configure Page Rules

Create a Page Rule that sets the appropriate cache behavior for specific paths or URL patterns.

Configure Disallow Cookie Based Cache in the Caching tab.

Specify the cookie name and value that identify requests which should always be served from the origin.

Configure SSL

Upload or assign an SSL certificate from the SSL tab.

Your custom domain should use a valid certificate before production traffic is routed through the CDN.

Test the CDN configuration

Before updating DNS, verify that requests are served through the CDN.

1

Find the IP address of your CDN hostname.

Example:

2

Update your local hosts file

Temporarily map your domain to the CDN IP address by editing your local hosts file.

This allows you to test the website without changing public DNS records.

3

Verify CDN response headers

Clear your browser cache and open your website.

Inspect the response headers in your browser's Developer Tools.

Verify that the response contains the following header:

This confirms that the request is being served through the Medianova CDN.

Update your DNS

After testing completes successfully, create a CNAME record that points your domain to the CDN hostname.

Example:

DNS propagation times depend on your DNS provider and configured TTL values.

Verify production traffic

After DNS propagation completes:

  • Confirm that requests are reaching the CDN.

  • Verify that SSL is functioning correctly.

  • Review cache behavior using the response headers.

  • Monitor requests from the Analytics dashboard.

Last updated

Was this helpful?