Integrated with web caching techniques, Anti-DDoS Pro and Anti-DDoS Premium provide scrubbing centers to protect your website services against DDoS attacks and reduce page load time.

Prerequisites

Your website service is associated with an Anti-DDoS Pro or Anti-DDoS Premium instance that uses the enhanced function plan.

Background information

Notice In the top navigation bar of the Anti-DDoS Pro or Anti-DDoS Premium console, you can switch the region (Mainland China and Outside Mainland China), and the system switches between Anti-DDoS Pro and Anti-DDoS Premium accordingly for you to manage and configure Anti-DDoS Pro or Premium instances. Ensure that you switch to the required region when you use Anti-DDoS Pro or Anti-DDoS Premium.

You can use the Static Page Caching policy to accelerate requests to your website and configure custom rules to reduce the load time of specific pages.

Procedure

  1. Log on to the Anti-DDoS Pro console.
  2. In the top navigation bar, select the region of your Anti-DDoS instance.
    • Mainland China: Anti-DDoS Pro
    • Outside Mainland China: Anti-DDoS Premium
  3. In the left-side navigation pane, choose Anti-DDoS Lab > Web Acceleration.
  4. Select the domain name for which you want to configure the Static Page Caching policy.
  5. In the Static Page Caching section, set Mode and turn on Status.Static Page Caching
    Static Page Caching supports the following modes: Standard, Enhanced, and No Cache.
    • Standard: In this mode, the system attempts to cache requested pages that contain static resources, such as CSS, JS, and TXT files, on a website.
    • Enhanced: In this mode, the system attempts to cache any requested page on a website.
    • No Cache: In this mode, the system does not cache any requested page on a website.
  6. Configure a custom caching rule for a specific URI.
    1. In the Static Page Caching section, click Change Settings.
    2. Click Create Rule.Create Rule
    3. In the Create Rule dialog box, set Name, URI, Mode, and Cache Expires In.Create Rule
      Note Do not enter parameters or wildcard characters in the URI field. For example, /a/ represents all pages under path www.a.com/a/.
    4. Click OK.