Skip to main content

Manage content display

By default, a CDN resource returns a response from the content source. You can temporarily hide the content so that the CDN resource content is unavailable to users.

If you hid content display, you can restore it at any time.

Hide content display

You can hide CDN resource content display in one of the following ways:

Set a status code

  1. In the Control panel, in the top menu, click Products and select CDN.

  2. In the CDN resources section, open the CDN resource page → the General tab.

  3. In the Return http status code block, select the Enabled checkbox.

  4. In the Response status code field, enter a response code in the range from 100 to 599, except redirect codes: 301, 302, 303, 307, 308. The entered status code will be displayed in the CDN resource response.

  5. Optional: in the Response body field, enter the text that will be displayed in the response.

  6. Click Apply. While the settings are being applied, the CDN resource will be in the PROCESSING status. During this time, applying other settings is unavailable. The settings will be applied when the CDN resource switches to the ACTIVE status.

  7. Purge the CDN resource cache.

Configure a redirect

  1. In the Control panel, in the top menu, click Products and select CDN.

  2. In the CDN resources section, open the CDN resource page → the General tab.

  3. In the Return http status code block, select the Enabled checkbox.

  4. In the Response status code field, enter one of the redirect codes: 301, 302, 303, 307, 308.

  5. In the Redirect URL field, enter the link to which the user will be redirected.

  6. Click Apply. While the settings are being applied, the CDN resource will be in the PROCESSING status. During this time, applying other settings is unavailable. The settings will be applied when the CDN resource switches to the ACTIVE status.

  7. Optional: for the CDN server to cache content from the redirect link, enable redirect following. By default, the CDN server caches only the response with the redirect code.

  8. Purge the CDN resource cache.

Restore CDN resource content display

  1. In the Control panel, in the top menu, click Products and select CDN.

  2. In the CDN resources section, open the CDN resource page → the General tab.

  3. In the Return http status code block, clear the Enabled checkbox.

  4. Click Apply. While the settings are being applied, the CDN resource will be in the PROCESSING status. During this time, applying other settings is unavailable. The settings will be applied when the CDN resource switches to the ACTIVE status.

  5. Purge the CDN resource cache.