Since jQuery 1.3, I have not provided the pack version, and I am in favor of using Google CDN for code hosting.
This solution has the following benefits:
1. Smaller downloads.
We all know that there are as many as 38 kb after jQuery 1.3 pack. If you can delete the copyright annotation to get a smaller code, unfortunately this is not only shameless but only saves 1 kb. However, the Min version that uses GZip provided by Google APIs is only 18 KB, And t
;Else {If (result. IndexOf (",")! =-1) {// There are ",", and multiple proxies are estimated. Obtain the first IP address that is not an intranet IP address.Result = result. Replace ("", ""). Replace ("'","");String [] temparyip = result. Split (",;". ToCharArray ());For (int I = 0; I {If (IsIPAddress (temparyip [I]) Temparyip [I]. Substring (0, 3 )! = "10 ." Temparyip [I]. Substring (0, 7 )! = "192.168&quo
The main server group, and then uses Squid to reverse cache port web80 to accelerate your website. portal websites such as 163, sina, and chinaitlab are basically using this technology. The advantage is that. for example, it accelerates the network and protects against hackers (because they see CDN hosts)This is an application that uses the Squid reverse cluster mode.
Network Environment:
Master server group: source Web server group located in public
www Jump to primary domain
The code is as follows
Copy Code
server {Listen 80;server_name www.111cn.net;Access_log off;Error_log off;return to Http://tool.lu$request_uri;}
HTTP jumps to HTTPS
The code is as follows
Copy Code
server {Listen 80;server_name tool.lu;return to Https://tool.lu$request_uri;}
FastCGI
The code is as follows
Copy Code
Location ~. php$ {Try_files $uri = 404;Fastcgi_pa
master server farm, and then use squid to reverse cache the WEB80 port to speed up its own web site. Major portals like 163,sina,chinaitlab are basically using this technology, The benefits are great. For example, to speed up the network and to prevent hackers (because they are seeing a CDN host)This is a use of squid reverse cluster model to do an application
Network environment:
Primary server cluster: The source Web server farm is located in the
A few of the domestic jquery CDN service addresses are recommended:Sina CDN, feel very quickly, with a lot of people, recommended use!Http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.jsChange the version number in the code between the other versions.CDN for 360Http://libs.useso.com/js/jquery/1.9.1/jquery.min.jsjquery Domestic CDN
The full name of the CDN is the Content Delivery network, which is the contents distribution networks. The goal is to add a new layer of network architecture to the existing Internet, publish the content of the site to the "Edge" of the network closest to the user, so that users can get the content they need, solve the congestion on the Internet, and increase the responsiveness of users to the site. The problem of the slow response speed of the user v
Today found that there is a problem online, a picture domain name, the front-end has been added CDN cache, do not cache, the dynamic implementation of PHP image scaling, but after the output of PHP processed pictures, each time to read from the backend, back-end server pressure increased, after analysis, PHP did not make 304 of the processing,HTTP principle is this, each request to the server, the service side detection has no modification, such as no
Baidu CDN SSL Configuration stepsThe certificate typically purchased from the SSL provider is in CRT binary format.1. Import the CRT into IIS and export it to the PFX format from IIS2. Download OpenSSL and execute the command belowExtracting user certificates (P12 or PFX)OpenSSL pkcs12- in Test.p12-clcerts-nokeys- out CERT.PEM //PEM format OpenSSL PKCS12- in Test.p12-clcerts-nokeys- out CERT.CRT //CRT formatIf you need to carry a secret key, remove
The full name of the CDN is the Content Delivery network, which is the contents distribution networks. The basic idea is to avoid the bottleneck and link of the Internet which may affect the speed and stability of data transmission, and make the content transmission faster and more stable. By placing the node servers in the network, a layer of intelligent virtual network based on the existing Internet, the CDN
Initial Requirements
Site high concurrency, you need to use the image/css/js resources to compress, to conserve server traffic resource bandwidth.
Server configuration: Primary 1, secondary 3 units. The main win64+ WAMP, through DNS automatic resolution allocation point.
Solution Solutions
The master server joins the Google jsminify Library, overwriting all access to the Css/js file under the Resource folder/public to the Jsminify program. Jsminify is automatically compressed and can only
A method to resolve a PHP backend generated image that cannot use the CDN cache
Today found that there is a problem online, a picture domain name, the front-end has been added CDN cache, do not cache, the dynamic implementation of PHP image scaling, but after the output of PHP processed pictures, each time to read from the backend, back-end server pressure increased, after analysis, PHP did not make 304
AWS launched its CDN service cloudfront several years ago, allowing you to create a URL pointing to your own S3 bucket or web server. When others access this cloudfront URL, the DNS will automatically resolve the Edge server to the nearest physical location, and then the Edge server will query whether there is any related cache, if not, he will send a request to orgin for information and keep it in the local area. The default cache time is 24 hours.
Label: style blog color OS file Div SP code logBecause the backend execution time is too long and the front end does not wait, a 504 error is prompted.504 error is caused by a limited latency and timeout setting on your CDN server.504 indicates that the front end does not wait to be aborted, but the front end does not work. The back end should be normal.502 error indicates that the backend does not respond, but the backend does not. If the frontend do
Google jquery CDN Acceleration Point
Http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
Microsoft jquery CDN Acceleration Point
Http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js
Sina jquery CDN Acceleration Point
Http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js
You can also write this, the first choice, if the load failed JS will lo
Chapter 3rd DNS for setting up domain names
We'll warm up before the play starts.
Intelligent DNS can be said to be the basis of CDN. Believe that everyone do the site will have the following situation: Home page two links, telecommunications users please visit the main site A, Netcom users please visit the Mirror site B. Then do two domain names, www.naizhao.com point to a,cnc.naizhao.com point B. The user looked at half a day feel dizzy, casually p
Many webmaster in the process of building a large web site, often encounter the site in a specific area to open the problem of slow speed. This is usually done in that area to do a site image, through smart DNS to determine the user access to which mirror server.
Here we use WDCP and WDCDN to build our CDN acceleration point. Because WDCDN relies on WDCP, we first install WDCP.The specific steps are as follows:
First step: Install WDCP 1.X
wget
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.