Web acceleration

The web acceleration service is the most basic and most widely used Content Delivery Network acceleration service. It’s mainly intended to accelerate small files with low update frequencies, such as .html, .css, and .js files, images, and Flash animation. Caching these small files on Microsoft Azure Content Delivery Network edge nodes reduces access pressure on source stations and meets users’ needs for nearby website access. This improves the website access experience and helps to boost user traffic on the website.

Web acceleration Content Delivery Network nodes are suitable for use with portal websites that have large numbers of visits, such as those belonging to small, medium, or large enterprises. Other examples include government agency websites and corporate portal websites.

This article discusses the creation of web acceleration domain names. For more information about how to create Azure Content Delivery Network acceleration nodes, see Use the Azure Content Delivery Network.

Default cache rules for web acceleration

The Content Delivery Network sets default cache rules for web acceleration (see the following). You can also customize cache rules based on your needs. For more information, see the Azure Content Delivery Network Portal advanced management help file “Domain Name Management.” If the source station content is changed or updated, but the cache time-to-live (TTL) you set hasn’t expired, you can manually refresh the cache files and synchronize the updated source station content in real time. For more information, see the Azure Content Delivery Network portal advanced management help file “Cache Refresh.”

The system’s default cache rules for web acceleration:

  1. Dynamic files—such as those with the extensions PHP, ASPX, ASP, JSP, DO, DWR, CGI, FCGI, ACTION, ASHX, AXD, and JSON—are not cached.
  2. Files with the extensions SHTML, HTML, HTM, and JS are cached for half a day (720 minutes) by default.
  3. All other static files are cached for one day (1,440 minutes) by default.

Create web acceleration domain names

1. Navigating to CDN Services

In the Microsoft Azure Management portal navigation pane, select “All services,” input “CDN,” and select “CDN profiles”

2. Creating CDN profiles

  • In “CDN profiles,” click “Add.”
  • Enter “Name,” “Subscription,” “Resource Group,” “Resources group location,” and “Pricing Layer” (pricing must include “Web acceleration”)
  • Click the “Create” button.
  • After successful creation, existing records can be viewed in the list.

3. Creating EndPoints

  • Find the record that has just been created in the “CDN profiles” list and click “Name.”
  • On the Overview page, click the Endpoint button
  • Enter the required information on the Endpoint Create page

    Note Please see Rules for Completion for required information (customer domain, ICP number, acceleration type, origin domain type, origin domain, origin host header).

4. Detailed explanation of Endpoint Create

  • In “Customer Name,” enter “Endpoint name.”

  • In ICP Number, enter the corresponding ICP record number for the custom domain that you entered (e.g., Jing ICP Bei XXXXXXXX Hao-X).

  • In the “Acceleration type” drop-down menu, choose “Web acceleration.”

    Note: “Web Acceleration” does not support the “Media Service” origin domain type

  • In the “Origin domain type” drop-down menu, choose the corresponding service. Select one option from the list of available cloud services, storage accounts, or web apps for use in creating the Content Delivery Network endpoint.

  • If “Custom domain type” is selected for “Origin domain type,” please enter your origin domain address in the “origin domain” field. You can provide one or multiple origin domain IP addresses (please differentiate multiple IP addresses using a semi-colon, for example: 126.1.1.1;172.1.1.1) or an origin domain name, for example origin.chinaazuretest.com (the custom domain name can’t be the same as the origin domain name).

  • In “Origin host header,” enter the back-to-source host header accepted by your source station. After you enter the custom domain, the system automatically fills in a default value based on the origin domain type that you selected.

    Note: The specific rule is that if your source station is on Azure, the default value is the corresponding source station address. If your source station isn’t on Azure, the default value is the custom domain that you entered. You also can also modify this based on the actual configuration of your source station.

  • Click the “Add” button to create a new endpoint.

  • After clicking, “Creating” will be displayed in the list status.

5. Using the endpoint list

5.1 Endpoints

After you have created the endpoint, it appears in the list of subscribed endpoints. The list view shows the custom domains that are used to access cached content, as well as the origin domains.

  • The origin domain is the original location of the content that is cached on the CDN.
  • Custom domains are used to visit content that is cached on the CDN

5.2 Deleting Endpoints

Click Delete to remove suspended or unused nodes.

5.3 CDN Portal (self-service management)
  • In the endpoints list, select the endpoint that needs to be managed
  • Click the Manage button

  • Enter the CDN Portal to perform self-help management. Note: The browser will open a new tab

Note: Configurations created for endpoints aren’t immediately available. They must be reviewed to check that the ICP custom domain name matches the ICP number. For more information, see the second half of “Step 2: Create a new Content Delivery Network endpoint” in Use the Azure Content Delivery Network.