{"id":2400,"date":"2020-12-07T11:53:48","date_gmt":"2020-12-07T03:53:48","guid":{"rendered":"http:\/\/ufqi.com\/blog\/?p=2400"},"modified":"2021-06-10T16:10:55","modified_gmt":"2021-06-10T08:10:55","slug":"gwa2-with-jsdelivr-cdn","status":"publish","type":"post","link":"https:\/\/ufqi.com\/blog\/gwa2-with-jsdelivr-cdn\/","title":{"rendered":"GWA2\u5409\u5a03\u5154\u5f15\u5165JsDelivr\u516c\u7528CDN\u7684\u5f00\u53d1\u4e0e\u914d\u7f6e"},"content":{"rendered":"<p>\u65b0\u51a0\u80ba\u708e\u75ab\u60c5\u6301\u7eed\u5dee\u4e0d\u591a\u4e00\u5e74\u4e86\uff0c\u75ab\u82d7\u5df2\u7ecf\u5728\u671b\uff0c\u5e0c\u671b\u4eba\u7c7b\u65e9\u65e5\u6218\u80dc\u8fd9\u4e2a\u75c5\u9b54\u3002<\/p>\n<p>GWA2\u5409\u5a03\u5154 \u6301\u7eed\u66f4\u65b0\u5347\u7ea7\uff0c\u8fd9\u6b21\u5728\u5347\u7ea7\u66f4\u65b0\u4f18\u5316\u7684\u8def\u4e0a\uff0c\u8d70\u5f97\u66f4\u8fdc\uff0c\u5c1d\u8bd5\u5f15\u5165\u516c\u7528CDN\uff08Content Delivery Network\uff0c\u5185\u5bb9\u5206\u53d1\u7f51\u7edc\uff09\u3002\u501f\u6b64\uff0c\u4f7f\u5f97\u57fa\u4e8eGWA2\u7684\u5404\u79cd\u5e94\u7528\u7a0b\u5e8f\u3001\u7f51\u9875\u80fd\u591f\u5982\u864e\u6dfb\u7ffc\u4e00\u822c\uff0c\u66f4\u5feb\u7684\u54cd\u5e94\u7528\u6237\u8bf7\u6c42\u3002\u8fd9\u6b21\u6539\u8fdb\u6e90\u4e8e\u6211\u4eec\u6301\u4e4b\u4ee5\u6052\u5730\u8ffd\u6c42\u2014\u2014\u66f4\u9ad8\u3001\u66f4\u5feb\u548c\u66f4\u5f3a\u3002<\/p>\n<p><img src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2017\/03\/%E7%BC%93%E5%AD%98%E6%8F%90%E9%80%9F.png\" \/><\/p>\n<p>\u6839\u636e\u6b64\u524d\u68b3\u7406\u7684\u63d0\u901f\u4f18\u5316\u601d\u8def\uff08-gMIS \u5409\u5bc6\u65af \u5347\u7ea7\uff1a\u589e\u52a0\u7f13\u5b58\uff0c\u6309\u65f6\u95f4\u5feb\u6377\u68c0\u7d22\u548c\u5168\u5c40SessionId\u7b49\uff0chttps:\/\/ufqi.com\/blog\/gmis-update-with-cache-searchbytime\/\uff09\uff0c\u6211\u4eec\u5206\u522b\u5728\u7f13\u5b58\u548c\u51cf\u5c11\u9875\u9762\u6301\u7eed\u4e24\u4e2a\u65b9\u4fbf\u8fdb\u884c\u4e86\u5404\u79cd\u4f18\u5316\u6539\u8fdb\u3002\u5176\u4e2d\u5728\u7f13\u5b58\u4f18\u5316\u65b9\u5411\uff0c\u5df2\u7ecf\u8fdb\u884c\u4e86\u5ba2\u6237\u7aef\u7f13\u5b58\u548c\u670d\u52a1\u5668\u7aef\u7f13\u5b58\uff0c\u72ec\u7f3a\u5c11\u7f51\u7edc\u5c42\u7f13\u5b58\uff08CDN\uff09\u8fd9\u5757\u3002\u8fdf\u8fdf\u6ca1\u6709\u4e0b\u624b\u8fdb\u884c\u8fd9\u4e2a\u7f51\u7edc\u5c42\u7f13\u5b58\u7684\u5347\u7ea7\u64cd\u4f5c\uff0c\u4e00\u662fCDN\u76f8\u5bf9\u800c\u8a00\u4e0e\u4ee3\u7801\u5c42\u5f00\u53d1\u5173\u7cfb\u4e0d\u5927\uff0c\u6216\u8005\u6ca1\u6709\u5173\u7cfb\uff1b\u4e8c\u662f\u7f51\u7edc\u5c42\u7684CDN\u51e0\u4e4e\u7b49\u540c\u4e8e\u52a0\u670d\u52a1\u5668\u3001\u52a0\u5e26\u5bbd\u7684\u610f\u601d\uff0c\u8fdf\u8fdf\u6ca1\u6709\u5408\u9002\u7684\u673a\u4f1a\u3002<\/p>\n<p>\u6839\u636e V2EX\u4e0a\u6280\u672f\u9ad8\u624b\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u5728\u8003\u5bdf\u4e86JsDelivr\u516c\u7528CDN\u4e4b\u540e\uff0c\u53d1\u73b0\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u5f00\u6e90CDN\u65b9\u6848\uff0c\u53ef\u4ee5\u5b9e\u73b0\u514d\u8d39\u514d\u5907\u6848\u4f7f\u7528\u7684\u9759\u6001\u8d44\u6e90\u5206\u53d1\u3002<\/p>\n<p>\u00a0<img loading=\"lazy\" class=\"\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2020\/08\/gwa2-logo-202005.v3.png\" width=\"67\" height=\"67\" \/>\u00a0WITH\u00a0\u00a0<img src=\"https:\/\/cdn.jsdelivr.net\/www.jsdelivr.com\/b12b739cba83c021b7611978b6c944758e6c2aef\/img\/logo-horizontal.svg\" \/>\u00a0\u00a0<\/p>\n<p>&nbsp;<\/p>\n<p><strong>1. \u4f7f\u7528JsDelivr\u7684\u51c6\u5907\u5de5\u4f5c<\/strong><br \/>JsDelivr \u5141\u8bb8\u6258\u7ba1\u548c\u5206\u53d1\u7684\u7f51\u9875\u6587\u4ef6\u7c7b\u578b\u662fJavaScript\uff08.js\uff09\u3001CSS\uff08.css) \u548c\u90e8\u5206\u5c0f\u5c3a\u5bf8\u7684\u56fe\u7247\uff08.jpg, .png\u7b49\uff09\u3002<\/p>\n<p>JsDelivr \u53ef\u4ee5\u8bfb\u53d6\u5f00\u6e90\u53d1\u5e03\u5728 npm \u3001GitHub\u548cWordPress \u4e0a\u7684\u4ee5\u4e0a\u76f8\u5173\u9759\u6001\u6587\u4ef6\u3002\u51fa\u4e8e\u4fbf\u4e8e\u7ba1\u7406\u548c\u66f4\u65b0GWA2\u6240\u4f7f\u7528\u7684\u5168\u90e8\u9759\u6001\u8d44\u6e90\u7c7b\u6587\u4ef6\uff0c\u6211\u4eec\u9009\u62e9\u5c06\u4e0a\u8ff0\u6587\u4ef6\u653e\u5728 GitHub \u7684\u516c\u5f00\u9879\u76ee\u4e0a\uff08Repository\uff09\u3002<\/p>\n<p>\u5728GitHub\u4e0a\u4e3a\u67d0\u4e2a\u9879\u76ee\u6216\u8005\u7f51\u7ad9\u3001App\u5efa\u7acb\u4e00\u4e2a\u5bf9\u5e94\u7684Repos, \u5c06GWA2 \u7684 view\u5b50\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u975ehtml\u6587\u4ef6\u4e0a\u4f20\u5230 GitHub \u5bf9\u5e94\u7684 Repos\u4e0b\u5373\u53ef\u3002\u8fd9\u4e9b\u6587\u4ef6\u5305\u62ec ,js, .css, .ico, .jpg, .png \u7b49\u7b49\u3002<\/p>\n<p>\u7531\u4e8eJsDelivr\u7684\u76ee\u6807\u662f\u5206\u53d1\u9759\u6001\u8d44\u6e90\u6587\u4ef6\uff0c\u5f53\u52a0\u8f7d.html\u6587\u4ef6\u65f6\uff0c\u5176content-type \u4e3a text\/plain , \u6240\u4ee5\u76ee\u524d\u8fd8\u65e0\u6cd5\u4f7f\u7528JsDelivr \u5206\u53d1 .html. \u4ece\u53e6\u5916\u4e00\u4e2a\u89d2\u5ea6\u6765\u8bf4\uff0c.html \u6587\u4ef6\u901a\u5e38\u5305\u62ec\u6709\u4e1a\u52a1\u903b\u8f91\u6216\u8005\u6a21\u677f\u8bed\u8a00\uff0c\u653e\u5728\u81ea\u5bb6\u670d\u52a1\u5668\u4e0a\uff0c\u53cd\u800c\u66f4\u597d\u3002<\/p>\n<p>\u7ecf\u8fc7\u4ee5\u4e0a\u51e0\u6b65\u51c6\u5907\u5de5\u4f5c\uff0c\u73b0\u5728\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u8def\u5f84\u8bbf\u95ee\u5230\u5df2\u7ecf\u653e\u5165 CDN\u7f51\u7edc\u7684\u9759\u6001\u6587\u4ef6\u3002\u5730\u5740\u4f8b\u5982\uff0c<\/p>\n<p>https:\/\/cdn.jsdelivr.net\/gh\/UserName\/ReposName\/view\/SiteName\/abc.css<\/p>\n<p>\u5176\u4e2d\uff0c gh \u4ee3\u8868\u5728 JsDelivr\u8bed\u5883\u4e2d\u7684 GitHub, <br \/>UserName \u4e3a\u5f53\u524d\u8d44\u6e90\u6587\u4ef6\u5728GitHub \u4e0a\u7684\u7528\u6237\u540d\u79f0\uff0c<br \/>ReposName \u4e3a\u5f53\u524d\u8d44\u6e90\u6587\u4ef6\u5728 GitHub \u4e0a\u7684\u9879\u76ee\u540d\u79f0\uff0c<br \/>view \u4e3a GWA2 \u7684\u5b50\u76ee\u5f55\uff0c\u8d1f\u8d23\u89c6\u56fe\uff0c\u6587\u4ef6\u7ed3\u6784\u4fdd\u6301\u4e0e\u672c\u5730\u670d\u52a1\u5668\u76f8\u4e00\u81f4\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2. \u5728GWA2\u4e2d\u5f15\u5165CDN<\/strong><\/p>\n<p>GWA2 \u4ece\u6700\u65e9\u65f6\u671f\u5df2\u7ecf\u91c7\u7528\u4e86 MVC \u5206\u5c42\u8bbe\u8ba1\uff0c\u56e0\u6b64\u9488\u5bf9\u89c6\u56fe\u6587\u4ef6\u7684\u4fee\u6539\uff0c\u76f8\u5bf9\u96c6\u4e2d\u3002\u6240\u6709\u89c6\u56fe\u6587\u4ef6\u7684\u52a0\u8f7d\uff0c\u90fd\u901a\u8fc7\u4e00\u4e2a\u53eb\u505a $viewdir \u7684\u5168\u5c40\u53d8\u91cf\u8fdb\u884c\u63a7\u5236\u3002 $viewdir \u544a\u8bc9\u670d\u52a1\u5668\u6216\u8005\u6a21\u677f\u5f15\u64ce\uff0c\u89c6\u56fe\u6587\u4ef6\u7684\u5177\u4f53\u4f4d\u7f6e\u3002<\/p>\n<p>\u5982\u679c\u8981\u5f15\u5165JsDelivr \uff0c\u5219\u53ea\u9700\u8981\u5728\u9879\u76ee\u4e2d\uff0c\u9002\u5f53\u4fee\u6539 $viewdir \u7684\u6307\u5411\u5373\u53ef\u3002\u901a\u5e38\u6d89\u53ca\u5230\u7684\u6587\u4ef6\u5728 comm\/footer.inc \u4e2d\u3002<\/p>\n<p>GWA2PHP:<br \/> $cdnStaticPrefix=&#8221;\/\/cdn.jsdelivr.net\/gh\/UserName\/ReposName&#8221;;<br \/> $viewdir = $cdnStaticPrefix.&#8221;\/&#8221;.$viewdir;<\/p>\n<p> GWA2Java:<br \/> \/\/- +cdn, 12:34 2020-12-04<br \/> String cdnStaticPrefix = &#8220;\/\/cdn.jsdelivr.net\/gh\/UserName\/ReposName&#8221;;<br \/> viewdir = cdnStaticPrefix + &#8220;\/&#8221; + viewdir;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3. \u901f\u5ea6\u63d0\u5347\u660e\u663e\u7528\u6237\u53cd\u9988\u826f\u597d<\/strong><\/p>\n<p>\u7ecf\u8fc7\u4e0a\u8ff0\u4fee\u6539\u540e\uff0c\u7a0b\u5e8f\u540c\u6b65\u53cahtml\u6216\u6a21\u677f\u66f4\u65b0\u540e\uff0c\u9875\u9762\u6d4f\u89c8\u52a0\u8f7d\u4f1a\u611f\u89c9\u63d0\u5347\u660e\u663e\u3002\u76f4\u89c9\u4e0a\u4f1a\u6709\u6240\u8c13\u7684\u201c\u79d2\u5f00\u201d\u3002\u8fd9\u5bf9\u4e8e\u5728\u56fd\u5185\u6d4f\u89c8\u6d77\u5916\u670d\u52a1\u5668\u7684\u76f8\u5173\u7f51\u7ad9\u65f6\uff0c\u5bf9\u6bd4\u5c24\u5176\u660e\u663e\u3002<\/p>\n<p>\u7406\u8bba\u4e0a\u5206\u6790\uff0c\u4e00\u4e2aHTML\u6587\u4ef6\u4e2d\uff0c\u5b9e\u9645 html \u4ee3\u7801\u7684\u5c3a\u5bf8\u5360\u6bd4\u5f88\u5c0f\uff0c\u7f51\u4e0a\u6709\u4e00\u4e9b\u8fd9\u65b9\u9762\u7684\u6570\u636e\uff0c\u53ef\u80fd\u572810%\u5de6\u53f3\uff0c\u800c\u66f4\u591a\u7684\u5219\u662f\u9700\u8981\u5448\u73b0\u9875\u9762\u7684 .js, .css\u548c\u5404\u7c7b\u9875\u9762\u5143\u7d20\u7b49\u3002\u5982\u679c\u5c06\u540e\u8005\u8fd9\u4e9b\u9759\u6001\u8d44\u6e90\u6587\u4ef6\u4ea4\u7ed9CDN\u7f51\u7edc\uff0c\u5176\u63d0\u901f\u6548\u679c\u81ea\u7136\u6709\u7a81\u98de\u731b\u8fdb\u7684\u611f\u89c9\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u8fd9\u4e9b\u539f\u672c\u9700\u8981\u672c\u5730\u670d\u52a1\u5668\u89e3\u6790\u8bf7\u6c42\u505a\u51fa\u5e94\u7b54\u7684\u5185\u5bb9\uff0c\u5b8c\u5168\u4ea4\u7ed9\u4e86CDN\u7f51\u7edc\uff0c\u65e0\u7591\u6781\u5927\u5730\u964d\u4f4e\u4e86\u672c\u5730\u670d\u52a1\u5668\u7684\u8d1f\u8f7d\u548c\u51cf\u5c11\u4e86\u672c\u5730\u7f51\u7edc\u7684\u5e26\u5bbd\u5360\u7528\u3002\u76f8\u5e94\u5730\uff0c\u8fd9\u4e9b\u5bcc\u88d5\u51fa\u6765\u7684\u8d44\u6e90\u53ef\u4ee5\u66f4\u597d\u3001\u66f4\u5feb\u5730\u54cd\u5e94HTML\u9875\u9762\u7684\u8f93\u51fa\u3002<\/p>\n<p>\u6b64\u6d88\u5f7c\u957f\uff0c\u57fa\u672c\u662f\u5728\u56fd\u5185\u7684\u7528\u6237\u6d4f\u89c8\u6d77\u5916\u670d\u52a1\u5668\u7684\u7f51\u7ad9\uff0c\u9875\u9762\u6253\u5f00\u5b9e\u73b0\u201c\u79d2\u5f00\u201d\u4e5f\u662f\u5f88\u6709\u53ef\u80fd\u7684\u3002<br \/>\u8fd9\u91cc\u7684\u201c\u79d2\u5f00\u201d\u5e94\u8be5\u4e3b\u8981\u662f\u6307\u9996\u6b21\u6253\u5f00\u67d0\u4e2a\u5168\u65b0\u7684\u9875\u9762\uff0c\u7531\u4e8eGWA2\u5df2\u7ecf\u5728\u5ba2\u6237\u7aef\u8fdb\u884c\u4e86\u5927\u91cf\u7684\u7f13\u5b58\uff0c\u5728\u7b2c\u4e8c\u6b21\u4e4b\u540e\u6253\u5f00\u6216\u8005\u5237\u65b0\u9875\u9762\uff0c\u8fd9\u4e9b\u9759\u6001\u7684.js .css\u548c\u56fe\u7247\u6587\u4ef6\u7b49\uff0c\u591a\u6570\u5c06\u90fd\u7531\u6d4f\u89c8\u5668\u8c03\u7528\u672c\u5730\u7f13\u5b58\u6765\u5b9e\u73b0\u54cd\u5e94\uff0c\u90a3\u5c06\u662f\u9875\u9762\u52a0\u8f7d\u7684\u6781\u81f4\u5feb\u901f\u3002<\/p>\n<p>\u6709\u65f6\u5019\u5e78\u798f\u6765\u5f97\u5c31\u662f\u8fd9\u4e48\u7a81\u7136\uff0c\u6d77\u5916\u670d\u52a1\u5668\u7684\u9875\u9762\u53ef\u4ee5\u5b9e\u73b0\u4e86\u79d2\u5f00\uff0c\u800c\u4e14\u8fd9\u4e2aCDN\u7531\u4e8e\u4e0d\u6d89\u53ca\u5230\u5177\u4f53\u5185\u5bb9\u6587\u4ef6\uff0c\u56e0\u6b64\u53ef\u4ee5\u4e0d\u7528\u4e2d\u56fd\u5730\u533a\u7684\u5907\u6848\uff0c\u800c\u4e14\u5979\u4e5f\u662f\u514d\u8d39\u7684\u2014\u2014GitHub\u514d\u8d39\u5bc4\u5b58\u9759\u6001\u8d44\u6e90\u6587\u4ef6\uff0cJsDelivr\u8d1f\u8d23\u514d\u8d39\u5206\u53d1\u5230\u8ddd\u79bb\u7528\u6237\u6700\u8fd1\u7684\u5730\u65b9\u2014\u2014\u636e\u8bf4\u5168\u7403\u6709\u4e0a\u6570\u767e\u4e2aCDN\u8282\u70b9\uff0c\u8fd9\u51e0\u4e4e\u53ef\u4ee5\u5ab2\u7f8e\u4e00\u6d41\u7684CDN\u670d\u52a1\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>4. CDN\u56de\u6eda\u4e0e\u5bb9\u9519<\/strong><\/p>\n<p>\u4f5c\u4e3a\u53ef\u9760\u7684\u5e9e\u5927\u7684CDN\u7f51\u7edc\uff0cJsDelivr\u662f\u7a33\u5b9a\u7684\uff0c\u4f46\u4e5f\u9700\u8981\u9884\u9632\u4e07\u4e00\u7684\u7a81\u53d1\u5076\u7136\u60c5\u51b5\uff0c\u5982\u679c\u7531\u4e8e\u67d0\u79cd\u672a\u77e5\u7684\u539f\u56e0 JsDelivr\u7a81\u7136\u4e0d\u80fd\u7528\u4e86\uff0c\u5982\u4f55\u53ef\u4ee5\u5feb\u901f\u5e73\u6ed1\u7684\u5207\u56de\u5230\u672c\u5730\u670d\u52a1\u5668\uff1f<\/p>\n<p>\u4e5f\u5373CDN\u670d\u52a1\u9700\u8981\u80fd\u591f\u5728\u5fc5\u8981\u7684\u65f6\u5019\u8fdb\u884c\u56de\u6eda\u6216\u8005\u964d\u7ea7\uff0c\u4ee5\u5b9e\u73b0\u5bb9\u9519\u3002\u8fd9\u4e2a\u5728 GWA2 \u91cc\u6539\u52a8\u76f8\u5bf9\u7b80\u5355\uff0c\u53c2\u7167\u4e0a\u9762\u589e\u52a0CDN\u7684\u65f6\u5019\u64cd\u4f5c\uff0c\u5982\u679c\u611f\u77e5\u5230 CDN\u4e0d\u53ef\u7528\u65f6\uff0c\u53ef\u4ee5\u6e05\u7a7a\u5176\u8d4b\u503c\u5373\u53ef\u5c06\u8d44\u6e90\u6587\u4ef6\u7684\u8bf7\u6c42\u5207\u6362\u5230\u672c\u5730\u670d\u52a1\u5668\u4e0a\u6765\u3002\u4e5f\u5373\u901a\u5e38\u60c5\u51b5\u4e0b\u8bf4\u7684\u6240\u6709CDN\u672c\u51fb\u7a7f\u4e86\u3002<\/p>\n<p>GWA2PHP:<br \/>$cdnStaticPrefix=&#8221;&#8221;; # failover<br \/>$viewdir = $cdnStaticPrefix.&#8221;\/&#8221;.$viewdir;<\/p>\n<p>GWA2Java:<br \/>\/\/- +cdn, 12:34 2020-12-04<br \/>String cdnStaticPrefix = &#8220;&#8221;; # failover<br \/>viewdir = cdnStaticPrefix + &#8220;\/&#8221; + viewdir;<\/p>\n<p><strong>5. \u591a\u6e90CDN\u53ca\u5e94\u7528\u5c42CDN\u961f\u5217<\/strong><\/p>\n<p>\u663e\u7136\uff0cGWA2 \u53ef\u4ee5\u5728\u4ee3\u7801\u5c42\u5b9e\u73b0\u591a\u6e90CDN\u7684\u96c6\u7fa4\u5f0f\u914d\u7f6e\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u7a0b\u5e8f\u4e2d\u5b9a\u4e49 $cdnStatixPrefix \u4f5c\u4e3a\u5f53\u524dCDN\u5206\u53d1\u7f51\u7edc\u7684\u6807\u5fd7\uff0c\u53ef\u4ee5\u53ef\u4ee5\u540c\u6837\u5730\u5b9a\u4e49 N\u4e2a\u4e0d\u540c\u7684CDN\u7f51\u7edc\uff0c\u5982 $cdnStaticPrefix2, $cdnStaticPrefix3&#8230; $cdnStaticPrefixN.<\/p>\n<p>\u5f53\u6709\u8fd9\u4e48\u4e00\u4e2a\u7fa4\u7ec4\u961f\u5217\u7684CDN\u53ef\u4ee5\u7528\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u968f\u673a\u7b97\u6cd5\u6216\u8005\u6743\u91cd\u7b97\u6cd5\uff0c\u5c06\u8bf7\u6c42\u5206\u53d1\u7ed9\u8fd9\u4e2aCDN\u6c60\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u52a0\u53ef\u9760\u7684\u5185\u5bb9\u5206\u53d1\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u52a0\u4e0a\u4e00\u5b9a\u7684\u5fc3\u8df3\u68c0\u6d4b\u88c5\u7f6e\uff0c\u81ea\u52a8\u5bf9\u4e0b\u7ebf\u5931\u6548\u7684CDN\u505a\u79fb\u9664\u5904\u7406\u3002\u540c\u6837\u5730\uff0c\u57fa\u4e8e\u5fc3\u8df3\u68c0\u6d4b\uff0c\u5c06\u6062\u590d\u6b63\u5e38\u7684CDN\u7f51\u7edc\u52a0\u5165\u5230\u961f\u5217\u4e2d\u6765\uff0c\u4ece\u800c\u5b9e\u73b0\u7f51\u7edc\u81ea\u52a8\u5316\u3001\u667a\u80fd\u5316\u8fd0\u884c\u3002<\/p>\n<p>\u5982\u4e0a\uff0c\u5b8c\u6210\u00a0GWA2\u5409\u5a03\u5154\u5f15\u5165JsDelivr\u516c\u7528CDN\u7684\u5f00\u53d1\u4e0e\u914d\u7f6e.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><img loading=\"lazy\" class=\"\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2020\/08\/gwa2-logo-202005.v3.png\" width=\"208\" height=\"208\" \/><\/p>\n<p><a href=\"https:\/\/ufqi.com\/dev\/gwa2\/\">-GWA2 \u5409\u5a03\u5154<\/a>\u00a0\u662f\u201c\u901a\u7528\u7f51\u7edc\u5e94\u7528\u67b6\u6784( General Web Application Architeture,\u00a0https:\/\/ufqi.com\/dev\/gwa2\/ )\u201d\uff0c\u57fa\u4e8e -GWA2 \u53ef\u4ee5\u8f7b\u4fbf\u6784\u5efa\u5404\u79cd\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f,<br \/>\u5305\u62ec\u590d\u6742\u7684\u5728\u7ebf\u8d2d\u7269\u5546\u57ce\u3001\u5728\u7ebf\u533b\u7597\u3001\u5728\u7ebf\u6559\u80b2\u3001 \u65c5\u6e38\u4ea4\u6613\u5e73\u53f0\u3001\u793e\u7fa4\u6216\u8005\u793e\u4ea4\u7f51\u7ad9\u548c\u65b0\u95fb\u8d44\u8baf\u7f51\u7ad9\u7b49\uff0c<br \/>\u4e5f\u5305\u62ec\u5404\u79cd\u4f01\u4e8b\u4e1a\u5355\u4f4d\u7f51\u4e0a\u95e8\u6237\uff0c\u5728\u7ebf\u4ea4\u4e92\u53ca\u670d\u52a1\u4f5c\u4e1a\u7cfb\u7edf\u7b49.\u00a0\u00a0\u6bd4\u5982 \u5f00\u6e90\u901a\u7528\u7ba1\u7406\u4fe1\u606f\u7cfb\u7edf\u8f6f\u4ef6\u00a0<a href=\"https:\/\/ufqi.com\/dev\/gmis\/\">gMIS\u5409\u5bc6\u65af<\/a>\uff08 \/\/ufqi.com\/dev\/gmis\/ \uff09, \u65b0\u95fb\u805a\u5408\u00a0<a href=\"https:\/\/ufqi.com\/news\/\">UfqiNew\u6709\u798f\u65b0\u95fb<\/a>( \/\/ufqi.com\/news\/ )<br \/>\u8fd8\u53ef\u4ee5\u5305\u62ec\u4e3aNativeApp\u505a\u670d\u52a1\u5668\u7aef\u652f\u6301, \u751a\u81f3\u662fWebApp\u7684\u5168\u90e8.<br \/>-GWA2 \u662f\u4e3a\u6570\u4e0d\u591a\u7684\u652f\u6301\u8de8\u5f00\u53d1\u8bed\u8a00\u7684\u5e94\u7528\u6846\u67b6\uff0c\u76ee\u524d\u652f\u6301 -Java, -PHP, -Perl, -Aspx and -Python .<\/p>\n<p>-GWA2 is a \u201cGeneral Web Application Architecture\u201d and based on -GWA2 developers can easily build a variety of network applications,<br \/>including complex online shopping malls, online medical services, online teaching, travel trading platforms, community or social networking sites and news information sites, etc.<br \/>Also the applications include various online portals of enterprises and institutions, online interaction and service operations systems.<br \/>Moreover it contains server-side support for NativeApp, or even all of the WebApp.<br \/>-GWA2 is one of the web frameworks which provide cross-language support for -Java, -PHP, -Perl, -Aspx and -Python at present.<\/p>\n<p><strong>-GWA2 is E.A.S.Y\u00a0<\/strong><br \/><b>Easy Along, Swift Yield<br \/><\/b>\u8f7b\u677e\u542f\u52a8, \u5feb\u901f\u4ea7\u51fa.<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><img src=\"https:\/\/cdn.jsdelivr.net\/www.jsdelivr.com\/b12b739cba83c021b7611978b6c944758e6c2aef\/img\/logo-horizontal.svg\" \/><\/p>\n<h1>JSDelivr: A free CDN for Open Source<\/h1>\n<h2>fast, reliable, and automated<\/h2>\n<section class=\"heading\">\n<div class=\"heading-message\">\n<div>serving ~\u00a094\u00a0billion requests \/ month<\/div>\n<\/div>\n<\/section>\n<section class=\"docs\">\n<div class=\"row\">\u00a0<\/p>\n<section class=\"heading\">\n<div class=\"heading-message\">\n<div>serving ~\u00a02990\u00a0TiB \/ month<\/div>\n<\/div>\n<\/section>\n<section class=\"docs\">\n<div class=\"row\">\u00a0<\/p>\n<section class=\"heading\">\n<div class=\"heading-message\">\n<div>around since 2012<\/div>\n<\/div>\n<\/section>\n<section class=\"docs\">\n<div class=\"row\">\u00a0<\/div>\n<\/section>\n<\/div>\n<\/section>\n<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u51a0\u80ba\u708e\u75ab\u60c5\u6301\u7eed\u5dee\u4e0d\u591a\u4e00\u5e74\u4e86\uff0c\u75ab\u82d7\u5df2\u7ecf\u5728\u671b\uff0c\u5e0c\u671b\u4eba\u7c7b\u65e9\u65e5\u6218\u80dc\u8fd9\u4e2a\u75c5\u9b54\u3002 GWA2 &hellip; <a href=\"https:\/\/ufqi.com\/blog\/gwa2-with-jsdelivr-cdn\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[42,7,6,2],"tags":[385,86,384,152,270],"_links":{"self":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2400"}],"collection":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/comments?post=2400"}],"version-history":[{"count":8,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2400\/revisions"}],"predecessor-version":[{"id":2585,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2400\/revisions\/2585"}],"wp:attachment":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media?parent=2400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/categories?post=2400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/tags?post=2400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}