<!doctype html>
<html class="theme-next   use-motion ">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  <link href="/vendors/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css"/>




  <link href="//fonts.googleapis.com/css?family=Lato:300,400,700,400italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">



<link href="/vendors/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=0.4.5.2" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Hexo, NexT" />





  <link rel="alternate" href="http://AfirSraftGarrier.github.io/atom.xml" title="酷我酷" type="application/atom+xml" />




  <link rel="shortcut icon" type="image/x-icon" href="/images/favicon.png?v=0.4.5.2" />






<meta name="description" content="分享即帮助">
<meta property="og:type" content="website">
<meta property="og:title" content="酷我酷">
<meta property="og:url" content="http://www.kuwoku.com/tags/CDN/index.html">
<meta property="og:site_name" content="酷我酷">
<meta property="og:description" content="分享即帮助">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="酷我酷">
<meta name="twitter:description" content="分享即帮助">



<script type="text/javascript" id="hexo.configuration">
  var CONFIG = {
    scheme: '',
    sidebar: 'post',
    motion: true
  };
</script>

  <title> 标签: CDN | 酷我酷 </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  <!--[if lte IE 8]>
  <div style=' clear: both; height: 59px; padding:0 0 0 15px; position: relative;margin:0 auto;'>
    <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
      <img src="http://7u2nvr.com1.z0.glb.clouddn.com/picouterie.jpg" border="0" height="42" width="820"
           alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today or use other browser ,like chrome firefox safari."
           style='margin-left:auto;margin-right:auto;display: block;'/>
    </a>
  </div>
<![endif]-->
  


<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-57622011-1', 'auto');
  ga('send', 'pageview');
</script>


  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?227bdbffbd87a1ca50e432dcc6b0960e";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




  <div class="container one-column ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta ">
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">酷我酷</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle" style="border-bottom:none;cursor:pointer" onclick='javascript:(function() {
                                 	function c() {
                                 		var e = document.createElement("link");
                                 		e.setAttribute("type", "text/css");
                                 		e.setAttribute("rel", "stylesheet");
                                 		e.setAttribute("href", f);
                                 		e.setAttribute("class", l);
                                 		document.body.appendChild(e)
                                 	}

                                 	function h() {
                                 		var e = document.getElementsByClassName(l);
                                 		for (var t = 0; t < e.length; t++) {
                                 			document.body.removeChild(e[t])
                                 		}
                                 	}

                                 	function p() {
                                 		var e = document.createElement("div");
                                 		e.setAttribute("class", a);
                                 		document.body.appendChild(e);
                                 		setTimeout(function() {
                                 			document.body.removeChild(e)
                                 		}, 100)
                                 	}

                                 	function d(e) {
                                 		return {
                                 			height : e.offsetHeight,
                                 			width : e.offsetWidth
                                 		}
                                 	}

                                 	function v(i) {
                                 		var s = d(i);
                                 		return s.height > e && s.height < n && s.width > t && s.width < r
                                 	}

                                 	function m(e) {
                                 		var t = e;
                                 		var n = 0;
                                 		while (!!t) {
                                 			n += t.offsetTop;
                                 			t = t.offsetParent
                                 		}
                                 		return n
                                 	}

                                 	function g() {
                                 		var e = document.documentElement;
                                 		if (!!window.innerWidth) {
                                 			return window.innerHeight
                                 		} else if (e && !isNaN(e.clientHeight)) {
                                 			return e.clientHeight
                                 		}
                                 		return 0
                                 	}

                                 	function y() {
                                 		if (window.pageYOffset) {
                                 			return window.pageYOffset
                                 		}
                                 		return Math.max(document.documentElement.scrollTop, document.body.scrollTop)
                                 	}

                                 	function E(e) {
                                 		var t = m(e);
                                 		return t >= w && t <= b + w
                                 	}

                                 	function S() {
                                 		var e = document.createElement("audio");
                                 		e.setAttribute("class", l);
                                 		e.src = i;
                                 		e.loop = false;
                                 		e.addEventListener("canplay", function() {
                                 			setTimeout(function() {
                                 				x(k)
                                 			}, 500);
                                 			setTimeout(function() {
                                 				N();
                                 				p();
                                 				for (var e = 0; e < O.length; e++) {
                                 					T(O[e])
                                 				}
                                 			}, 15500)
                                 		}, true);
                                 		e.addEventListener("ended", function() {
                                 			N();
                                 			h()
                                 		}, true);
                                 		e.innerHTML = " <p>If you are reading this, it is because your browser does not support the audio element. We recommend that you get a new browser.</p> <p>";
                                 		document.body.appendChild(e);
                                 		e.play()
                                 	}

                                 	function x(e) {
                                 		e.className += " " + s + " " + o
                                 	}

                                 	function T(e) {
                                 		e.className += " " + s + " " + u[Math.floor(Math.random() * u.length)]
                                 	}

                                 	function N() {
                                 		var e = document.getElementsByClassName(s);
                                 		var t = new RegExp("\\b" + s + "\\b");
                                 		for (var n = 0; n < e.length; ) {
                                 			e[n].className = e[n].className.replace(t, "")
                                 		}
                                 	}

                                 	var e = 30;
                                 	var t = 30;
                                 	var n = 350;
                                 	var r = 350;
                                 	var i = "//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake.mp3";
                                 	var s = "mw-harlem_shake_me";
                                 	var o = "im_first";
                                 	var u = ["im_drunk", "im_baked", "im_trippin", "im_blown"];
                                 	var a = "mw-strobe_light";
                                 	var f = "//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake-style.css";
                                 	var l = "mw_added_css";
                                 	var b = g();
                                 	var w = y();
                                 	var C = document.getElementsByTagName("*");
                                 	var k = null;
                                 	for (var L = 0; L < C.length; L++) {
                                 		var A = C[L];
                                 		if (v(A)) {
                                 			if (E(A)) {
                                 				k = A;
                                 				break
                                 			}
                                 		}
                                 	}
                                 	if (A === null) {
                                 		console.warn("Could not find a node of the right size. Please try a different page.");
                                 		return
                                 	}
                                 	c();
                                 	S();
                                 	var O = [];
                                 	for (var L = 0; L < C.length; L++) {
                                 		var A = C[L];
                                 		if (v(A)) {
                                 			O.push(A)
                                 		}
                                 	}
                                 })()    '>给世界酷出我的酷</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu menu-left">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-home fa-fw"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-th fa-fw"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-user fa-fw"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-archive fa-fw"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-tags fa-fw"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-commonweal">
          <a href="/404.html" rel="section">
            
              <i class="menu-item-icon fa fa-heartbeat fa-fw"></i> <br />
            
            公益
          </a>
        </li>
      

      
      
        <li class="menu-item menu-item-search">
          <a href="#" class="st-search-show-outputs">
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br />
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  

<script type="text/javascript">
  (function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
    (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
    e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
  })(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');

  _st('install', 'Uf3M4iHJGy3DkfZN1kNM','2.0.0');
</script>



    </div>
  
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div id="content" class="content">
          

  <div id="posts" class="posts-collapse">
    <div class="collection-title">
      <h2 >
        CDN
        <small>标签</small>
      </h2>
    </div>

    
      

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
    <header class="post-header">

      <h1 class="post-title">
        
            <a class="post-title-link" href="/2015/12/28/坑爹CDN给在线测试带来的问题/" itemprop="url">
              
                <span itemprop="name">坑爹CDN给在线测试带来的问题</span>
              
            </a>
        
      </h1>

      <div class="post-meta">
        <time class="post-time" itemprop="dateCreated"
              datetime="2015-12-28T22:57:12+08:00"
              content="2015-12-28" >
          12-28
        </time>
      </div>

    </header>
  </article>


    
  </div>

  


        </div>
        

        


      </div>

      
        
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      

      <section class="site-overview sidebar-panel  sidebar-panel-active ">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" src="/images/default_avatar.jpg" alt="酷我酷" itemprop="image"/>
          <p class="site-author-name" itemprop="name">酷我酷</p>
        </div>
        <p class="site-description motion-element" itemprop="description">分享即帮助</p>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">43</span>
              <span class="site-state-item-name">日志</span>
            </a>
          </div>

          <div class="site-state-item site-state-categories">
            <a href="/categories">
              <span class="site-state-item-count">29</span>
              <span class="site-state-item-name">分类</span>
              </a>
          </div>

          <div class="site-state-item site-state-tags">
            <a href="/tags">
              <span class="site-state-item-count">43</span>
              <span class="site-state-item-name">标签</span>
              </a>
          </div>

        </nav>

        
          <div class="feed-link motion-element">
            <a href="http://AfirSraftGarrier.github.io/atom.xml" rel="alternate">
              <i class="fa fa-rss"></i>
              RSS
            </a>
          </div>
        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/AfirSraftGarrier" target="_blank">
                  
                    <i class="fa fa-github"></i> GitHub
                  
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://twitter.com/AfirSraftGarrie" target="_blank">
                  
                    <i class="fa fa-twitter"></i> Twitter
                  
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://weibo.com/u/1940794292" target="_blank">
                  
                    <i class="fa fa-weibo"></i> Weibo
                  
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.douban.com/people/db-acc/" target="_blank">
                  
                    <i class="fa fa-globe"></i> DouBan
                  
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.zhihu.com/people/afirsraftgarrier-29" target="_blank">
                  
                    <i class="fa fa-globe"></i> ZhiHu
                  
                </a>
              </span>
            
          
        </div>

        
        

        <div class="links-of-author motion-element">
          
            <p class="site-author-name">友情链接</p>
            
              <span class="links-of-author-item">
                <a href="http://www.lianquna.com" target="_blank">链去哪</a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.kuwoku.com" target="_blank">酷我酷</a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.keheji.com" target="_blank">壳合集</a>
              </span>
            
          
        </div>
        <div class="cc-license motion-element" itemprop="license" style="opacity: 1; display: block; transform: translateX(0px);">
            <a href="http://creativecommons.org/licenses/by-nc-sa/4.0" class="cc-opacity" target="_blank" rel="external nofollow">
              <img src="/images/cc-by-nc-sa.svg" alt="Creative Commons">
            </a>
        </div>
      </section>

      

    </div>
  </aside>


      
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy;  2015 - 
  <span itemprop="copyrightYear">2016</span>
  <span class="with-love">
    <i class="icon-next-heart fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder"><a class="theme-link" href="http://www.kuwoku.com" style="color:red">酷我酷</a></span>
</div>

<div class="powered-by">
  由 <a class="theme-link" href="http://hexo.io" target="_blank" style="color:gray">HEXO</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next" target="_blank" style="color:gray">
    NEXT
  </a>
  <script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
  <span id="busuanzi_container_site_pv">&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;本站总访问量<span id="busuanzi_value_site_pv"></span>次</span>
</div>

<div class="theme-info">
   <script>
   (function(){
       var bp = document.createElement('script');
       bp.src = '//push.zhanzhang.baidu.com/push.js';
       var s = document.getElementsByTagName("script")[0];
       s.parentNode.insertBefore(bp, s);
   })();
   </script>
   <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1257066910'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/z_stat.php%3Fid%3D1257066910%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));</script>
</div>
<p style="margin-bottom:-10px;">COPYRIGHT © 酷我酷  粤ICP备14100221号</p>



      </div>
    </footer>

    <div class="back-to-top"></div>
<div class="top-to-back"></div>
<div class="left-to-right" onClick="leftToRightClick()"></div>
<div class="right-to-left" onClick="rightToLeftClick()"></div>
<script type="text/javascript">
  function leftToRightClick() {
      
          nextNaviClick();
      
  }

  function rightToLeftClick() {
      
          preNaviClick();
      
  }

  function preNaviClick() {
      if($('i').hasClass("fa-angle-right")) {
          $('.fa-angle-right').click();
      }
  }

  function nextNaviClick() {
      if($('i').hasClass("fa-angle-left")) {
          $('.fa-angle-left').click();
      }
  }
</script>

  </div>

  <script type="text/javascript" src="/vendors/jquery/index.js?v=2.1.3"></script>

  
  
  
    <script type="text/javascript">
      postMotionOptions = {stagger: 100, drag: true};
    </script>
  


  
    

  
    
  

  <script type="text/javascript">
    var duoshuoQuery = {short_name:"AfirSraftGarrier"};
    (function() {
      var ds = document.createElement('script');
      ds.type = 'text/javascript';ds.async = true;
      ds.id = 'duoshuo-script';
      ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
      ds.charset = 'UTF-8';
      (document.getElementsByTagName('head')[0]
      || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
  </script>
    
     
     
  	  <script type="text/javascript">
  		var duoshuo_user_ID = 6224780871593887000
      var duoshuo_admin_nickname="酷我酷"
  	  </script>
     
  	<script src="/js/ua-parser.min.js"></script>
  	<script src="/js/hook-duoshuo.js"></script>
  


    

  

  
  <script type="text/javascript" src="/vendors/fancybox/source/jquery.fancybox.pack.js"></script>
  <script type="text/javascript" src="/js/fancy-box.js?v=0.4.5.2"></script>


  <script type="text/javascript" src="/js/helpers.js?v=0.4.5.2"></script>
  <script type="text/javascript" src="/vendors/velocity/velocity.min.js"></script>
<script type="text/javascript" src="/vendors/velocity/velocity.ui.min.js"></script>

<script type="text/javascript" src="/js/motion.js?v=0.4.5.2" id="motion.global"></script>


  <script type="text/javascript" src="/vendors/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  <script type="text/javascript" src="/vendors/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  

  <script type="text/javascript" src="/js/bootstrap.js"></script>

  
  
  <script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
        processEscapes: true,
        skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
      }
    });
  </script>

  <script type="text/x-mathjax-config">
    MathJax.Hub.Queue(function() {
      var all = MathJax.Hub.getAllJax(), i;
      for (i=0; i < all.length; i += 1) {
        all[i].SourceElement().parentNode.className += ' has-jax';
      }
    });
  </script>

  
    <script type="text/javascript" src="http://cdn.staticfile.org/mathjax/2.4.0/MathJax.js"></script>
    <script type="text/javascript" src="http://cdn.staticfile.org/mathjax/2.4.0/config/TeX-AMS-MML_HTMLorMML.js"></script>
  


  
  
  <!-- custom analytics part create by xiamo -->
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
<script>AV.initialize("t2rSFICpuTnyyi6nOFHsnHaM", "s1slrYanIAFr41TM32fuwKAi");</script>
<script>
function showTime(Counter) {
  var query = new AV.Query(Counter);
  $(".leancloud_visitors").each(function() {
    var url = $(this).attr("id").trim();
    query.equalTo("url", url);
    query.find({
      success: function(results) {
        if (results.length == 0) {
          var content = $(document.getElementById(url)).text() + ': 0';
          $(document.getElementById(url)).text(content);
          return;
        }
        for (var i = 0; i < results.length; i++) {
          var object = results[i];
          var content = $(document.getElementById(url)).text() + ': ' + object.get('time');
          $(document.getElementById(url)).text(content);
        }
      },
      error: function(object, error) {
        console.log("Error: " + error.code + " " + error.message);
      }
    });

  });
}

function addCount(Counter) {
  var Counter = AV.Object.extend("Counter");
  url = $(".leancloud_visitors").attr('id').trim();
  title = $(".leancloud_visitors").attr('data-flag-title').trim();
  var query = new AV.Query(Counter);
  query.equalTo("url", url);
  query.find({
    success: function(results) {
      if (results.length > 0) {
        var counter = results[0];
        counter.fetchWhenSave(true);
        counter.increment("time");
        counter.save(null, {
          success: function(counter) {
            var content = $(document.getElementById(url)).text() + ': ' + counter.get('time');
            $(document.getElementById(url)).text(content);
          },
          error: function(counter, error) {
            console.log('Failed to save Visitor num, with error message: ' + error.message);
          }
        });
      } else {
        var newcounter = new Counter();
        newcounter.set("title", title);
        newcounter.set("url", url);
        newcounter.set("time", 1);
        newcounter.save(null, {
          success: function(newcounter) {
              console.log("newcounter.get('time')="+newcounter.get('time'));
            var content = $(document.getElementById(url)).text() + ': ' + newcounter.get('time');
            $(document.getElementById(url)).text(content);
          },
          error: function(newcounter, error) {
            console.log('Failed to create');
          }
        });
      }
    },
    error: function(error) {
      console.log('Error:' + error.code + " " + error.message);
    }
  });
}
$(function() {
  var Counter = AV.Object.extend("Counter");
  if ($('.leancloud_visitors').length == 1) {
    addCount(Counter);
  } else if ($('.post-title-link').length > 1) {
    showTime(Counter);
  }
}); 
</script>

</body>
</html>
