Documentation Origin Settings 301/302 Redirection Optimization

301/302 Redirection Optimization

Last update:2026-07-13 18:14:08

In some scenarios, origin servers may return 301 or 302 redirect responses to user requests. This requires the user to make an additional request to retrieve the target file, which may negatively affect the user experience. To address this issue, Atomile provides the Redirect Optimization feature. With this feature enabled, CDN edge servers can directly retrieve and deliver the redirected file to users, eliminating the need for repeated requests and significantly improving content delivery efficiency.

How to Configure Redirect Optimization

  1. Log in to the Atomile Console and select the appropriate product.
  2. Go to Configuration, locate the domain you want to configure, and click Edit Configuration at the top, or click the Edit button to the right of the domain.
  3. On the Edit Configuration page, find Origin Settings > Follow Origin Redirect. Here, you can select one or both status codes (301, 302) to enable redirect optimization when the origin returns those response codes.

After completing your configuration, click Next to submit your settings. To minimize any potential disruption to your production environment, we strongly recommend performing a Pre-deploy test in a staging environment. This important step ensures that your configuration is correct before it goes live.

After you confirm that the settings are correct, click Deploy Now to apply them in the live environment. The configuration typically takes effect within 3 to 5 minutes. For more information about pre-deployment testing and validation, refer to Deploy the Configurations to Staging Environment for Validation.