Talking about the family moving static files to CDN

Source: Internet
Author: User

Due to the recent activities of the seven KN CDN, the following offers are available free for standard users

Up to ten GB of storage space
g/Month Download traffic
100,000 times/month Put/delete request
1 million times/month GET request

The above indicators directly explain, for many small sites basic enough. So I'm going to transfer some of my website's static files and pictures to the CDN.

I wrote an article in front: "Amuse the wicked ah" site cache optimization is to speed up the speed of the picture, this time put the picture in the CDN, so it will be faster

But for me, I would also like to consider a problem, that is, if the seven cow CDN problem, how can I quickly switch. I have studied the background of the next seven cows and have a function of image storage, which is what I use.

Let me tell you how I did it.

Seven cow mirror function needs to fill in a domain name, I use PIC1 configuration example

I configured two PIC1 related domain names, the first Pic1, the second cdn_pic1, literally know, the first is Pic1 is the original domain name, CDN_PIC1 is the CDN access domain name, switch is configured to indicate whether to use CDN,

In the seven cow background mirror function Place to fill in the Pic1 configuration domain name, and then in the custom domain name place cdn_pic1 configuration domain name, such as

Then in the management domain name of the place to do a CNAME operation is good, so you can access the picture through Cdn_pic1.

If the CDN problem, I can immediately modify the configuration switch to false, access to the original resources, which solves my problem

The speed of the website has significantly improved after using CDN:

The original address: The family moved static files to the CDN

Talking about the family moving static files to CDN

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.