Jump to content

about cdn


ZhangLazarus

Recommended Posts

http://en.wikipedia.org/wiki/Content_delivery_network

 

The Extjs, UNIGui Js, touch Js other JS files, image files, video files and other static resource files saved on the CDN server
1) WEB improve service response, because CDN optimization based ISP
2) while reducing bandwidth web services, because CDN assign data streams to a different CDN service node
 
将Extjs、UNIGui Js、touch Js 等其他JS文件、图片文件、视频文件等静态资源文件保存在CDN服务器上
1)提高WEB服务响应,因为CDN会根据ISP优化
2)同时降低web服务的带宽,因为CDN将数据流分配到不同CDN服务节点

 

例如:
For example:

 

在现有

In the existing

 
UniServerModule.ExtRoot = D: \ ext-4.2.2.1144 \
UniServerModule.UniRoot = D: \ uni-0.99.0.1159,
UniServerModule.TouchRoot = D: \ touch-2.4.1 \
UniServerModule.UniMobileRoot = D: \ unim-0.99.0.1159 \
 
基础上增加

Based on the increase

 
UniServerModule.ExtRootUrl = http: //*.yourdomain.com/ext-4.2.2.1144/
UniServerModule.UniRootUrl = http: //*.yourdomain.com/uni-0.99.0.1159/
UniServerModule.TouchRootUrl = http: //*.yourdomain.com/touch-2.4.1/
UniServerModule.UniMobileRootUrl = http: //*.yourdomain.com/unim-0.99.0.1159/
 
打开网页生成如下代码:

Open the Web page to generate the following code:

 
<Link rel = stylesheet href = "/ uni-0.99.0.1159 / css / uni-ext.css" />
<Link rel = stylesheet href = "/ ext-4.2.2.1144 / resources / css / ext-all.css" />
<Script src = "/ ext-4.2.2.1144 / ext-all.js"> </ script>
<Script src = "/ uni-0.99.0.1159 / ext-unicommon-min.js"> </ script>
<Script src = "/ uni-0.99.0.1159 / ext-sync-min.js"> </ script>
<Script src = "/ ext-4.2.2.1144 / locale / ext-lang-zh.js"> </ script>
<Script type = "text / javascript">
 
/{这里指向CDN服务URL 也就是UniServerModule.ExtRootUrl

// URL CDN service point here is UniServerModule.ExtRootUrl

Ext.Loader.setConfig ({enabled: true, paths: {"Ext.uni": "/ uni-0.99.0.1159 /"}});
 
</ Script>
 
<Script src = "/ uni-0.99.0.1159 / AlwaysOnTop.js"> </ script>
<Script src = "/ uni-0.99.0.1159 / ClearButton / ClearButton.js"> </ script>
<Link rel = stylesheet href = "/ uni-0.99.0.1159 / ClearButton / ClearButton.css" />
<Link rel = stylesheet href = "/ uni-0.99.0.1159 / css / uni-xtheme-common.css" />
<Link rel = stylesheet href = "/ uni-0.99.0.1159 / css / uni-xtheme.css" />
<Script src = "/ uni-0.99.0.1159 / ext-unigui-min.js"> </ script>

 

 

 

not cache  & first load unigui

 

CDN VS no cdn

cdn not cache first load unigui

 

 

no cdn no cache first load unigu

 

post-1625-0-53983500-1426758255_thumb.png

post-1625-0-91866900-1426758269_thumb.png

Link to comment
Share on other sites

  • 2 years later...

Hi,

 

Any idea if this can be implemented,

 

thanks

 

 

 

http://en.wikipedia.org/wiki/Content_delivery_network

 

The Extjs, UNIGui Js, touch Js other JS files, image files, video files and other static resource files saved on the CDN server
1) WEB improve service response, because CDN optimization based ISP
2) while reducing bandwidth web services, because CDN assign data streams to a different CDN service node
 
将Extjs、UNIGui Js、touch Js 等其他JS文件、图片文件、视频文件等静态资源文件保存在CDN服务器上
1)提高WEB服务响应,因为CDN会根据ISP优化
2)同时降低web服务的带宽,因为CDN将数据流分配到不同CDN服务节点

 

例如:
For example:

 

在现有

In the existing

 
UniServerModule.ExtRoot = D: \ ext-4.2.2.1144 \
UniServerModule.UniRoot = D: \ uni-0.99.0.1159,
UniServerModule.TouchRoot = D: \ touch-2.4.1 \
UniServerModule.UniMobileRoot = D: \ unim-0.99.0.1159 \
 
基础上增加

Based on the increase

 
UniServerModule.ExtRootUrl = http: //*.yourdomain.com/ext-4.2.2.1144/
UniServerModule.UniRootUrl = http: //*.yourdomain.com/uni-0.99.0.1159/
UniServerModule.TouchRootUrl = http: //*.yourdomain.com/touch-2.4.1/
UniServerModule.UniMobileRootUrl = http: //*.yourdomain.com/unim-0.99.0.1159/
 
打开网页生成如下代码:

Open the Web page to generate the following code:

 
<Link rel = stylesheet href = "/ uni-0.99.0.1159 / css / uni-ext.css" />
<Link rel = stylesheet href = "/ ext-4.2.2.1144 / resources / css / ext-all.css" />
<Script src = "/ ext-4.2.2.1144 / ext-all.js"> </ script>
<Script src = "/ uni-0.99.0.1159 / ext-unicommon-min.js"> </ script>
<Script src = "/ uni-0.99.0.1159 / ext-sync-min.js"> </ script>
<Script src = "/ ext-4.2.2.1144 / locale / ext-lang-zh.js"> </ script>
<Script type = "text / javascript">
 
/{这里指向CDN服务URL 也就是UniServerModule.ExtRootUrl

// URL CDN service point here is UniServerModule.ExtRootUrl

Ext.Loader.setConfig ({enabled: true, paths: {"Ext.uni": "/ uni-0.99.0.1159 /"}});
 
</ Script>
 
<Script src = "/ uni-0.99.0.1159 / AlwaysOnTop.js"> </ script>
<Script src = "/ uni-0.99.0.1159 / ClearButton / ClearButton.js"> </ script>
<Link rel = stylesheet href = "/ uni-0.99.0.1159 / ClearButton / ClearButton.css" />
<Link rel = stylesheet href = "/ uni-0.99.0.1159 / css / uni-xtheme-common.css" />
<Link rel = stylesheet href = "/ uni-0.99.0.1159 / css / uni-xtheme.css" />
<Script src = "/ uni-0.99.0.1159 / ext-unigui-min.js"> </ script>

 

 

 

not cache  & first load unigui

 

CDN VS no cdn

cdn not cache first load unigui

 

 

no cdn no cache first load unigu

 

Link to comment
Share on other sites

×
×
  • Create New...