{"id":62441,"date":"2020-04-10T08:15:51","date_gmt":"2020-04-10T00:15:51","guid":{"rendered":"http:\/\/4563.org\/?p=62441"},"modified":"2020-04-10T08:15:51","modified_gmt":"2020-04-10T00:15:51","slug":"%e5%88%ab%e5%86%8d%e7%9b%b2%e7%9b%ae%e5%a5%97-cloudflare-%e5%95%a6%ef%bc%8c%e8%bf%99%e6%9c%89%e5%87%a0%e7%82%b9%e4%bc%98%e5%8c%96%e5%bb%ba%e8%ae%ae%e5%8a%a9%e4%bd%a0%e7%bd%91%e7%ab%99%e5%86%8d","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=62441","title":{"rendered":"\u522b\u518d\u76f2\u76ee\u5957 CloudFlare \u5566\uff0c\u8fd9\u6709\u51e0\u70b9\u4f18\u5316\u5efa\u8bae\u52a9\u4f60\u7f51\u7ad9\u518d\u52a0\u901f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>huangtao728<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 18:16:43\t<\/p>\n<h3>\u522b\u518d\u76f2\u76ee\u5957 CloudFlare \u5566\uff0c\u8fd9\u6709\u51e0\u70b9\u4f18\u5316\u5efa\u8bae\u52a9\u4f60\u7f51\u7ad9\u518d\u52a0\u901f<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 huangtao728 \u4e8e 2020-3-20 21:29 \u7f16\u8f91 <\/p>\n<p> \u63d0\u5230\u514d\u8d39 CDN \u5927\u5bb6\u7b2c\u4e00\u4e2a\u60f3\u5230\u7684\u4f30\u8ba1\u90fd\u662f CloudFlare \uff0c\u8fd9\u73a9\u610f\u513f\u514d\u8d39\u867d\u597d\uff0c\u4f46\u662f\u6709\u65f6\u53ef\u80fd\u6709\u51cf\u901f\u6548\u679c\uff0cemmmm&#8230;<\/p>\n<p>  \u867d\u7136\u5927\u5bb6\u5957\u7684\u90fd\u662f\u540c\u4e00\u4e2a CF \uff0c\u4f46\u662f\u8bbe\u7f6e\u4f18\u5316\u8fd8\u662f\u53ef\u4ee5\u4e00\u5b9a\u7a0b\u5ea6\u6539\u5584\u6027\u80fd\u7684\uff01\uff01<\/p>\n<p>  \u4ee5\u4e0b\u662f\u57fa\u7840\u4f18\u5316\uff1a<\/p>\n<p>  1. \u5f00(\u767d)\u901a(piao) Pro \u5957\u9910<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; CloudFlare Pro \u867d\u7136\u5728\u7ebf\u8def\u4e0a\u548c\u514d\u8d39\u7248\u65e0\u5f02\uff0c\u4f46\u662f\u53ef\u4ee5\u5f00\u542f Polish\uff08\u56fe\u7247\u81ea\u52a8\u8f6c WebP\uff09\u3001 TCP Turbo\u3001 Mirage\uff08\u5f31\u7f51\u4f18\u5316\uff09\u8fd9\u51e0\u4e2a\u9644\u52a0\u529f\u80fd\uff0c\u5bf9\u52a0\u8f7d\u901f\u5ea6\u6709\u6240\u63d0\u5347\u3002<br \/>  2. \u4f7f\u7528\u81ea\u9009 IP<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; \uff08\u524d\u63d0\u662f CNAME \u63a5\u5165\uff09\u6700\u57fa\u7840\u7684\u662f\u81ea\u9009 Enterprise \u7248\u672c\u624d\u5206\u914d\u7684 IP \u6bb5\uff0c\u5c31\u6bd4\u5982 V2EX \u7684\u8282\u70b9\uff0c\u53ef\u4ee5\u542f\u7528 HKG \u7b49\u666e\u901a\u7248\u4e0d\u5206\u914d\u7684\u8282\u70b9\uff1b\u5269\u4e0b\u7684\u5c31\u662f\u89e3\u6790\u5230\u4ece\u5927\u4f6c\u53e3\u4e2d\u5f97\u77e5\u7684\uff0c\u6709\u7279\u6b8a\u8def\u7531\u7684\u8282\u70b9\uff08\u8d70\u9999\u6e2f\u7b49\u7b49\uff09\u3002<br \/>  3. Railgun<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; \u6709 CFP \u7684\u5927\u4f6c\u53ef\u4ee5\u5f00\uff0c\u52a0\u901f\u52a8\u6001\u5185\u5bb9\u6548\u679c\u4e0d\u9519\u3002<br \/>  4. Argo<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; \u6bcf\u6708 5$ \u8d77\u6b65\uff0c\u53ef\u4ee5\u6539\u5584 CF \u5230\u4f60\u6e90\u7ad9\u7684\u8bbf\u95ee\u901f\u5ea6\uff0c\u53ef\u4ee5\u8fbe\u5230\u7c7b\u4f3c Railgun \u7684\u52a0\u901f\u7a0b\u5ea6\uff0c\u89c1\u56fe\uff1a<br \/>  \u5f00\u542f\u524d<br \/>  https:\/\/i.loli.net\/2020\/03\/20\/564BT7DhcvQtFfr.png<br \/>  \u5f00\u542fArgo\u540e<br \/>  https:\/\/i.loli.net\/2020\/03\/20\/HAYRsMuFtfQlLNZ.png<br \/>  \u524d\u540e\u5bf9\u6bd4\uff0c\u4ee5\u65e5\u672c\u4e3a\u4f8b\uff0cTTFB\u4ece 271ms \u964d\u5230 139ms\uff0c\u52a0\u901f\u660e\u663e<\/p>\n<p>  5. \u5f00\u542f HTTP\/3 (with QUIC)<br \/>  6. \u9488\u5bf9\u67d0\u4e2a\u8fd0\u8425\u5546\/\u5730\u533a\uff0c\u7981\u7528 CF \u7684 IPv6<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; \uff08\u524d\u63d0\u662f CNAME \u63a5\u5165\uff09\u73b0\u5728\u56fd\u5185\u5bb6\u5bbd\u5927\u591a\u81ea\u5e26\u4e86 IPv6 \uff0c\u4f46\u662f\u90e8\u5206\u5730\u533a v6 \u90e8\u5206\u7684\u8def\u7531\u9b54\u5e7b\u7684\u4e0d\u884c\uff08\u5168\u7403\u65c5\u884c\uff09\uff0c\u7531\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u504f\u5411\u4f7f\u7528 v6\uff0c\u5728\u786e\u5b9a CF v6 IP \u5b58\u5728\u8def\u7531\u95ee\u9898\u540e\u53ef\u4ee5\u5220\u6389 v6 \u8bb0\u5f55\uff0c\u4f1a\u6709\u4e00\u5b9a\u63d0\u5347\u3002<\/p>\n<p>  \u91cd\u70b9\u6765\u4e86\uff01\uff01<br \/>  HTTP\/2 Server Push: <br \/>  \u5f00\u542f\u540e\u4f60\u9009\u62e9\u7684\u8d44\u6e90\u4f1a\u968f\u7b2c\u4e00\u4e2a\u8bf7\u6c42\u4e00\u8d77\u63a8\u9001\uff0c\u5927\u5e45\u51cf\u5c11\u52a0\u8f7d\u65f6\u95f4\uff0c<br \/>  \u9700\u8981\u4f60\u7684\u670d\u52a1\u5668\u6dfb\u52a0\u4e00\u6761 Header\uff0c\u6548\u679c\u89c1\u56fe\uff1a<br \/>  \u672a\u5f00\u542f<br \/>  https:\/\/i.loli.net\/2020\/03\/20\/F1Xs7gBHxPcWh5v.png<br \/>  \u5f00\u542f Server Push \u7684\u540c\u670d\u52a1\u5668\u7f51\u7ad9<br \/>  https:\/\/i.loli.net\/2020\/03\/20\/IGRyEWKBumjrwa2.png<\/p>\n<p>  \u4f60\u53ea\u9700\u8981\u6dfb\u52a0\u4e00\u4e2a\u540d\u4e3a Link \u7684 Header\uff0c\u5185\u5bb9\u4e3a(\u4ee5\u6211\u7684\u4e3e\u4f8b)\uff1a<br \/>  Link: &lt;\/lib\/abc.css&gt;; rel=preload; as=style, &lt;\/lib\/abc.js&gt;; rel=preload; as=script, &lt;\/meta\/bg.png&gt;; rel=preload; as=image, &lt;\/meta\/favicon.png&gt;; rel=preload; as=image;<\/p>\n<p>  \u5047\u5982\u4f60\u4f7f\u7528 PHP\uff0c\u53ef\u4ee5\u6dfb\u52a0\u4e00\u884c\u4ee3\u7801\uff1a<br \/>  header(&#8216;Link: &lt;\/lib\/abc.css&gt;; rel=preload; as=style, &lt;\/lib\/abc.js&gt;; rel=preload; as=script, &lt;\/meta\/bg.png&gt;; rel=preload; as=image, &lt;\/meta\/favicon.png&gt;; rel=preload; as=image;&#8217;);<br \/>  \u5185\u5bb9\u8bb0\u5f97\u4fee\u6539~<\/p>\n<p>  \u542b\u4e49\u4e3a\uff1a<br \/>  \u63a8\u9001 &quot;\/lib\/abc.css&quot;\uff0c\u7c7b\u578b\u4e3a\u6837\u5f0f\u8868\uff1b \u63a8\u9001 &quot;\/lib\/abc.js&quot;\uff0c\u7c7b\u578b\u4e3aJS\uff1b\u63a8\u9001 &quot;\/meta\/bg.png&quot;\uff0c\u7c7b\u578b\u4e3a\u56fe\u7247\uff1b<br \/>  \u5982\u679c\u4f60\u4f7f\u7528 WordPress\uff0c\u6bd4\u5982 iON \u7684\u514d\u8d39 WP\uff0c\u53ef\u4ee5\u5b89\u88c5 &quot;HTTP2 Push Content&quot; \u8fd9\u4e2a\u63d2\u4ef6\uff0c\u4f1a\u81ea\u52a8\u6dfb\u52a0\u8fd9\u4e2a Link \u5934\u3002<\/p>\n<p>  \u6dfb\u52a0\u540e\u6309 F12\uff0c\u770b\u5230\u8d44\u6e90\u540e\u9762\u6709\u4e2a Push \/ Other \u3001\u53ef\u4ee5\u627e\u5230\u7c7b\u4f3c\uff1a<br \/>  cf-h2-pushed: &lt;\/lib\/abc.css&gt;,&lt;\/lib\/abc.js&gt;,&lt;\/meta\/bg.png&gt;,&lt;\/meta\/favicon.png&gt;<br \/>  \u7684 Header \u5c31\u610f\u5473\u7740\u5df2\u5f00\u542f\u63a8\u9001\u3002<\/p>\n<p>  \u505a\u4e2a\u5e7f\u544a:lol \u8fd9\u662f\u6211\u5957\u4e86 CF \u7684\u5728\u7ebf\u8bb0\u4e8b\u672c\u7f51\u7ad9\uff1a <br \/>  https:\/\/note.ms\/loc<br \/>  \u53ef\u4ee5\u5728\u624b\u673a\/\u7535\u8111\u4e4b\u95f4\u4f20\u6587\u672c\uff0c\u5b9e\u65f6\u66f4\u65b0\uff0c\u4e0a\u7ebf\u81f3\u4eca\u5df2\u7ecf\u4ea7\u751f\u8d85\u8fc7 8000 \u7bc7\u7b14\u8bb0\u5566\uff01<br \/>  \u5df2\u5f00\u542f Argo \u548c HTTP\/2 Server Push ~\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>haveyuner<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 18:18:49\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5343\u725b<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 18:19:04\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u5efa\u8bae\uff0c\u4ee5\u540e\u53bb\u8bd5\u8bd5:lol:lol<br \/>  \u5df2\u77e5\u7684\u662f\u5f88\u591a\u4eba\u662f\u7528\u6765\u505a\u7279\u6b8acdn\u7684\uff0c\u5176\u6b21\u8fd8\u6709\u5c31\u662fcfloudflare\u7684pro\u7248\u672c\u624d\u670930\u6761\u89c4\u5219\u81ea\u5b9a\u4e49\uff0c\u9ed8\u8ba4\u76843\u6761\u592a\u86cb\u75bc\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kko654852<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 18:20:07\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7b2c\u4e00\u4e2a\u6536\u85cf\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>logo<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 18:20:08\t<\/p>\n<h3><\/h3>\n<p>  \t\tmark  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>jaaack<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 18:20:38\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u524d\u6392\u6536\u85cf:lol:lol:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>b66667777<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 18:22:08\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8def\u8fc7\u5e2e\u9876&nbsp; &nbsp; yc022t\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lenchanlhz<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 18:26:12\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u9519\u7684\u6559\u7a0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5403\u548c\u8fdc\u65b9<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 18:26:15\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6709\u94b1\u5927\u4f6c <\/p>\n<p>  \u5f00 argo\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5403\u548c\u8fdc\u65b9<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-20 18:27:17\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5927\u4f6c\u7684\u539f\u7ad9\u5728\u54ea\u91cc\uff1f\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>huangtao728 \u5927\u4f6c\u6709\u8bdd\u8bf4&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/62441"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=62441"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/62441\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=62441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=62441"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=62441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}