{"id":37185,"date":"2023-03-01T05:35:15","date_gmt":"2023-02-28T21:35:15","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=37185"},"modified":"2023-03-01T05:35:15","modified_gmt":"2023-02-28T21:35:15","slug":"http-server-push","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/http-server-push.html","title":{"rendered":"\u4ec0\u4e48\u662fHTTP Server Push\uff1f"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u4e0a\u5468\u6211\u5728\u65af\u8fbe\u54e5\u5c14\u6469\u4f4f\u4e86\u51e0\u5929\uff0c\u51fa\u5e2d\u4e86HTTP \u7814\u8ba8\u4f1a\uff0c\u53c2\u4e0e\u4e86\u4e0d\u5c11\u5438\u5f15\u4eba\u7684\u8ba8\u8bba\u3002\u5176\u4e2d\u4e00\u6b21\u662f\u5173\u4e8e HTTP \u63a8\u9001\u53ca\u5176\u4f18\u7f3a\u70b9\u3001\u65e9\u671f\u5b9e\u9a8c\u7ed3\u679c\u7684\u3002\u7531\u4e8e\u65e9\u671f\u5b9e\u9a8c\u90e8\u7f72\u7ed3\u679c\u4e0d\u90a3\u4e48\u7406\u60f3\uff0c\u4eba\u4eec\u5bf9 HTTP \u63a8\u9001\u5927\u4f53\u6301\u7740\u6000\u7591\u6001\u5ea6\uff0c\u4e0d\u8fc7\u6211\u60f3\u5206\u4eab\u4e0b\u81ea\u5df1\u66f4\u4e50\u89c2\u4e00\u4e9b\u7684\u89c2\u70b9\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n HTTP \u63a8\u9001\u80fd\u505a\u54ea\u4e9b\u9884\u52a0\u8f7d\u4e0d\u80fd\u505a\u7684\u4e8b\uff1f<\/strong><\/div>\n \u4ece\u6000\u7591\u8005\u90a3\u91cc\u4e00\u518d\u542c\u5230\u7684\u89c2\u70b9\u662f\uff0c\u201c\u63a8\u9001\u76f8\u5bf9\u4e8e\u9884\u52a0\u8f7d\u6765\u8bf4\uff0c\u53ea\u4e0d\u8fc7\u8282\u7701\u4e86\u4e00\u6b21 RTT\uff08Round Trip Time\uff09\u800c\u5df2\u201d\u3002\u5728\u5b9e\u8df5\u4e2d\uff0c\u8fd9\u5e76\u975e\u603b\u662f\u5bf9\u7684\uff0c\u6709\u4e00\u4e2a\u4f7f\u7528\u6848\u4f8b\uff0c\u63a8\u9001\u53ef\u4ee5\u5b8c\u6210\uff0c\u4f46\u9884\u52a0\u8f7d\u65e0\u6cd5\u505a\u5230\u3002<\/p>\n \u5229\u7528\u670d\u52a1\u5668\u601d\u8003\u65f6\u95f4\uff08think-time\uff09<\/strong><\/span><\/div>\n \u5982\u4eca\uff0cHTML \u54cd\u5e94\u5f88\u5c11\u53ea\u662f\u5355\u7eaf\u7684\u9759\u6001\u8d44\u6e90\u4e86\u3002\u5b83\u4eec\u901a\u5e38\u90fd\u662f\u901a\u8fc7\u6570\u636e\u5e93\u83b7\u53d6\u6240\u9700\u7684\u4fe1\u606f\u3001\u4f7f\u7528\u9ad8\u7ea7\u8bed\u8a00\uff08\u53ef\u80fd\u7565\u5fae\u6162\u4e00\u4e9b\uff09\u52a8\u6001\u751f\u6210\u7684\u3002\u867d\u7136\u540e\u7aef\u54cd\u5e94\u65f6\u95f4\u786e\u5b9e\u53ef\u4ee5\u800c\u4e14\u5e94\u5f53\u4f18\u5316\uff0c\u4f46\u51e0\u767e\u6beb\u79d2\u7684\u54cd\u5e94\u65f6\u95f4\u4e5f\u5e76\u4e0d\u5e38\u89c1\u3002<\/p>\n \u6709\u4e00\u4e2a\u5e38\u89c1\u7684\u5efa\u8bae\uff0c\u201c\u63d0\u65e9 flush\u201d HTML\uff0c\u5728\u67e5\u8be2\u6570\u636e\u5e93\u5e76\u6784\u5efa\u52a8\u6001\u5185\u5bb9\u7684\u540c\u65f6\uff0c\u53d1\u9001 HTML \u7684\u9996\u4e2a chunk \u5757\u3002\u4f46\u662f\uff0c\u5e76\u975e\u6240\u6709\u670d\u52a1\u7aef\u7684\u6784\u67b6\u90fd\u80fd\u8fd9\u4e48\u7b80\u5355\u5730\u5b9e\u73b0\u3002<\/p>\n \u53e6\u5916\u4e00\u4e2a\u8ba9\u95ee\u9898\u53d8\u5f97\u56f0\u96be\u7684\u56e0\u7d20\u662f\uff0c\u9700\u8981\u5f00\u59cb\u5411\u6d4f\u89c8\u5668\u53d1\u9001\u6570\u636e\u65f6\uff0c\u6211\u4eec\u5c1a\u65e0\u6cd5\u786e\u5b9a\u54cd\u5e94\u7684\u6784\u5efa\u662f\u5426\u4f1a\u5b8c\u5168\u6210\u529f\u3002\u4e3a\u907f\u514d\u51fa\u73b0\u54cd\u5e94\u521b\u5efa\u903b\u8f91\u51fa\u9519\uff08\u6bd4\u5982\u8bf4\uff0c\u6570\u636e\u5e93\u9519\u8bef\u6216\u8005\u670d\u52a1\u7aef\u4ee3\u7801\u8fd0\u884c\u5931\u8d25\uff09\uff0c\u6211\u4eec\u9700\u8981\u5728\u5e94\u7528\u903b\u8f91\u4e2d\u521b\u5efa\u4e00\u79cd\u201c\u56de\u6eda\u201d\u5df2\u53d1\u9001\u54cd\u5e94\u6570\u636e\u7684\u65b9\u5f0f\uff0c\u5e76\u5411\u7528\u6237\u5c55\u793a\u9519\u8bef\u4fe1\u606f\u3002\u5c3d\u7ba1\u8fd9\u80af\u5b9a\u6709\u53ef\u80fd\u505a\u5f97\u5230\uff08\u751a\u81f3\u662f\u81ea\u52a8\u5316\u7684\uff09\uff0c\u4f46\u76ee\u524d\u8fd8\u6ca1\u6709\u4e00\u79cd\u901a\u7528\u7684\u65b9\u5f0f\u80fd\u591f\u4f5c\u4e3a\u534f\u8bae\u7684\u4e00\u90e8\u5206\u3002<\/p>\n \u56e0\u6b64\u4e00\u822c\u573a\u666f\u662f\uff0cWeb \u670d\u52a1\u5668\u7b49\u5f85\u540e\u7aef\u6570\u767e\u6beb\u79d2\u4ee5\u6784\u5efa\u9875\u9762\uff0c\u800c\u540e\u5f00\u59cb\u8fd4\u56de\u6570\u636e\u3002\u8fd9\u65f6\u5019\u6211\u4eec\u5c31\u78b0\u5230\u4e86\u6162\u542f\u52a8\uff08\u8bd1\u8005\u6ce8\uff1aslow start\uff0c\u53ef\u53c2\u8003http:\/\/www.cnblogs.com\/ggjucheng\/archive\/2012\/02\/02\/2335994.html\uff09\uff0c\u6240\u4ee5\u9996\u6b21 RTT \u53ea\u80fd\u53d1\u9001\u5927\u7ea6 14 KB \u6570\u636e\uff0c\u7b2c\u4e8c\u6b21 28 KB \u5de6\u53f3\uff0c\u5982\u6b64\u7b49\u7b49\u3002\u7531\u6b64\u6211\u4eec\u77e5\u9053\uff0c\u5c06 HTML \u53d1\u9001\u51fa\u53bb\uff0c\u9700\u8981\u7528\u53bb\u670d\u52a1\u5668\u601d\u8003\u65f6\u95f4\u52a0\u4e0a\u6162\u542f\u52a8\u65f6\u95f4\u3002\u5728\u601d\u8003\u65f6\u95f4\u671f\u95f4\uff0c\u6d4f\u89c8\u5668\u5bf9\u63a5\u4e0b\u6765\u6240\u9700\u7684\u8d44\u6e90\u4e00\u65e0\u6240\u77e5\uff0c\u6545\u4e5f\u4e0d\u4f1a\u9488\u5bf9\u63a5\u4e0b\u6765\u6240\u9700\u8d44\u6e90\u7684\u5173\u952e\u8def\u5f84\u53d1\u9001\u4efb\u4f55\u8bf7\u6c42\u3002<\/p>\n <\/p>\n \u800c\u4e14\uff0c\u5373\u4f7f\u6211\u4eec\u8bd5\u7740\u800d\u5c0f\u806a\u660e\uff0c\u9488\u5bf9\u90a3\u4e9b\u8d44\u6e90\u6dfb\u52a0preload \u62a5\u5934\uff0c\u82e5\u6211\u4eec\u4e0d\u63d0\u65e9 flush \u6587\u6863\u5f00\u5934\uff0c\u90a3\u8fd8\u662f\u6ca1\u6709\u5bf9\u601d\u8003\u65f6\u95f4\u52a0\u4ee5\u5229\u7528\u3002\u73b0\u5728\uff0c\u5c06\u8fd9\u4e2a\u4e0e\u4f7f\u7528 HTTP \u63a8\u9001\u80fd\u505a\u7684\u4e8b\u60c5\u505a\u4e2a\u5bf9\u6bd4\u3002\u670d\u52a1\u5668\u53ef\u4ee5\u5229\u7528\u601d\u8003\u65f6\u95f4\u6765\u63a8\u9001\u76f8\u5173\u7684\u5173\u952e\u6027\u8d44\u6e90 \u2014\u2014 \u5c24\u5176\u662f CSS \u548c JS\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u5f53\u601d\u8003\u65f6\u95f4\u7ed3\u675f\u65f6\uff0c\u6211\u4eec\u6781\u6709\u53ef\u80fd\u5df2\u5c06\u6240\u6709\u5173\u952e\u6027\u8d44\u6e90\u90fd\u63a8\u9001\u7ed9\u6d4f\u89c8\u5668\u4e86\u3002\u8fd8\u6709\u989d\u5916\u597d\u5904\uff0c\u8fd9\u4e9b\u8d44\u6e90\u4e5f\u9884\u70ed\u4e86 TCP \u8fde\u63a5\uff0c\u4e5f\u63d0\u5347\u4e86\u62e5\u585e\u7a97\u53e3\uff08congestion window\uff09\uff0c\u786e\u4fdd\u601d\u8003\u65f6\u95f4\u4e4b\u540e\u7684\u9996\u4e2a RTT \u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 28 KB\uff0c56 KB\uff0c\u4e43\u81f3\u66f4\u5927\u7684\u62e5\u585e\u7a97\u53e3\u53d1\u9001 HTML\uff08\u8fd9\u53d6\u51b3\u4e8e\u601d\u8003\u65f6\u95f4\u7684\u957f\u77ed\uff0c\u4ee5\u53ca\u5728\u6b64\u671f\u95f4\u6211\u4eec\u63a8\u9001\u4e86\u591a\u5c11\u8d44\u6e90\uff09\u3002<\/p>\n \u4e00\u8d77\u6765\u770b\u4e0b\u5177\u4f53\u6848\u4f8b\uff1a\u4e00\u4e2a 120 KB \u7684 HTML \u9875\u9762\uff0c\u5173\u952e CSS \u6709 24KB\uff0c\u5173\u952e JS \u6709 74 KB\uff0c\u5728 100ms RTT\u3001\u65e0\u9650\u5e26\u5bbd\u7684\u7f51\u7edc\u73af\u5883\u4e0b\u662f\u5982\u4f55\u52a0\u8f7d\u7684\uff1f\u6ca1\u6709 HTTP \u63a8\u9001\u7684\u60c5\u51b5\u4e0b\uff0c\u751f\u6210 HTML \u7b49\u5f85\u4e86 300ms\uff0c\u63a5\u7740 4 \u6b21 RTT \u53d1\u9001 HTML\uff0c\u56e0\u4e3a\u6162\u542f\u52a8\u7684\u7f18\u6545\uff0c\u4f7f\u7528\u4e86\u4e00\u4e2a RTT \u8bf7\u6c42 JS \u548c CSS\u3002\u5728\u9996\u6b21\u6e32\u67d3\u4e4b\u524d\uff0c\u65f6\u95f4\u8d85\u8fc7\u4e86 800 \u6beb\u79d2\u3002<\/p>\n <\/p>\n \u4f7f\u7528 HTTP \u63a8\u9001\uff0cCSS \u548c JS \u4f1a\u5728 HTML \u8bf7\u6c42\u5230\u8fbe\u4e4b\u540e\u5c3d\u5feb\u63a8\u9001\u51fa\u53bb\uff0c\u53d1\u9001\u5b83\u4eec\u9700\u8981 3 \u4e2a RTT\uff08\u53c8\u4e00\u6b21\u56e0\u4e3a\u6162\u542f\u52a8\uff09\uff0c\u5b83\u4eec\u5c06\u62e5\u585e\u7a97\u53e3\u589e\u5927\u81f3 128 KB \u5de6\u53f3\uff0c\u5c06\u8981\u53d1\u9001 HTML \u65f6\uff0c\u4e00\u4e2a RTT \u5c31\u80fd\u53ef\u4ee5\u4e86\u3002\u9996\u6b21\u6e32\u67d3\u603b\u65f6\u95f4\uff1a 400 \u6beb\u79d2\u3002<\/p>\n <\/p>\n \u9996\u6b21\u6e32\u67d3\u52a0\u901f\u4e86 50%\uff01\u4e5f\u4e0d\u7b97\u5f88\u5dee\u561b\u3002\u3002\u3002<\/p>\n HTTP \u63a8\u9001\u4e0d\u5c3d\u5982\u610f\u7684\u5730\u65b9<\/strong><\/div>\n \u6211\u8ba4\u4e3a\u4eba\u4eec\u5728\u9519\u8bef\u5730\u4f7f\u7528<\/strong>\u00a0HTTP \u63a8\u9001\u7684\u539f\u56e0\u4e4b\u4e00\u662f\uff0c\u4ed6\u4eec\u5728\u67d0\u4e9b\u5e76\u4e0d\u80fd\u63d0\u4f9b\u4efb\u4f55\u597d\u5904\u751a\u81f3\u635f\u5bb3\u6548\u7387\u7684\u573a\u666f\u4e0b\u4f7f\u7528\u5b83\u3002<\/p>\n \u4f7f\u7528 HTTP \u63a8\u9001\u53ef\u80fd\u505a\u7684\u9519\u4e8b\u4e4b\u4e00\u5c31\u662f\u544a\u8bc9\u4f60\u81ea\u5df1\uff0c\u201c\u554a\uff0c\u8fd9\u4e9b\u8d44\u6e90\u662f\u6240\u6709\u9875\u9762\u90fd\u9700\u8981\u7684\uff0c\u628a\u5b83\u4eec\u914d\u7f6e\u6210\u6240\u6709\u9875\u9762\u90fd\u63a8\u9001\u201d\u3002<\/p>\n \u8fd9\u5f88\u7cdf\u7cd5\uff0c\u539f\u56e0\u662f\u7f13\u5b58\u3002\u5728\u8bbf\u95ee\u7b2c\u4e00\u4e2a\u9875\u9762\u4e4b\u540e\uff0c\u8fd9\u4e9b\u8d44\u6e90\u5f88\u53ef\u80fd\u5c31\u5728\u7528\u6237\u7684\u6d4f\u89c8\u5668\u7f13\u5b58\u4e2d\uff0c\u7136\u800c\u4f60\u5374\u5728\u95f7\u5934\u63a8\u9001\u3002\u4f60\u53ef\u80fd\u4f1a\u4e89\u8fa9\u8bf4\uff0c\u8fd9\u53ef\u6bd4\u5185\u8054\u6240\u6709\u8fd9\u4e9b\u8d44\u6e90\u597d\u591a\u4e86\u3002\u662f\u8fd9\u6837\u7684\uff0c\u4e0d\u9519\uff0c\u4f46\uff0c\u6211\u5fc5\u987b\u53cd\u8fc7\u6765\u544a\u8bc9\u4f60\uff0c\u5185\u8054\u8d44\u6e90\u4e5f\u662f\u7cdf\u7cd5\u7684\u4e3b\u610f\u3002<\/p>\n \u6240\u4ee5\uff0c\u82e5\u4f60\u5728\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u76f2\u76ee\u63a8\u9001\u8d44\u6e90\uff0c\u8bf7\u786e\u4fdd\u5b83\u662f\u4f60\u60f3\u8981\u5185\u8054\u5728\u9875\u9762\u4e2d\u7684\u552f\u4e00\u7684<\/em>\u8d44\u6e90\uff0c\u4e5f\u5c31\u662f\u5173\u952e\u7684 CSS\u3002\u5426\u5219\uff0c\u4f60\u5c31\u662f\u5728\u5192\u9669\u8ba9\u91cd\u590d\u7684\u8bf7\u6c42\u53d8\u6162\u3002<\/p>\n \u4f60\u53ef\u80fd\u4f1a\u4ee5\u4e3a\uff0c\u6d41\u91cd\u7f6e\uff08stream resets\uff09\u4f1a\u5e2e\u52a9\u63a8\u9001\u5df2\u7f13\u5b58\u7684\u8d44\u6e90\u53bb\u907f\u514d\u6d6a\u8d39\u5e26\u5bbd\u548c\u65f6\u95f4\u3002\u4f60\u53ef\u80fd\u9519\u4e86\u3002\u5f88\u663e\u7136\uff0c\u5e76\u975e\u6240\u6709\u6d4f\u89c8\u5668\u4f1a\u68c0\u67e5\u7f13\u5b58\u5e76\u7ec8\u6b62\u5df2\u7f13\u5b58\u8d44\u6e90\u7684\u63a8\u9001\u3002\u5c31\u7b97\u5b83\u4eec\u4f1a\u8fd9\u6837\uff0c\u5728\u6d41\u91cd\u7f6e\u4fe1\u53f7\u5230\u8fbe\u670d\u52a1\u5668\u4e4b\u524d\uff0c\u8fd8\u662f\u4f7f\u7528\u4e86\u4e00\u6574\u4e2a RTT \u65f6\u95f4\u53d1\u9001\u6570\u636e\u3002\u5c24\u5176\u662f\u6709\u591a\u4e2a\u8d44\u6e90\u65f6\uff0c\u8fd9\u6837\u505a\u5c06\u53ef\u80fd\u5e26\u6765\u5927\u91cf\u6570\u636e\u6d6a\u8d39\u3002<\/p>\n \u4f60\u53ef\u80fd\u4ee5\u4e3a\uff0c\u63a8\u9001\u4f1a\u5c06\u8d44\u6e90\u653e\u5165\u6d4f\u89c8\u5668\u7f13\u5b58\uff0c\u53ef\u4ee5\u7528\u6765\u505a\u4e00\u4e9b\u50cf\u4f7f\u5f53\u524d\u8d44\u6e90\u5931\u6548\u8fd9\u6837\u7684\u5de5\u4f5c\u3002\u81f3\u5c11\u76ee\u524d\u4e0d\u662f\u5982\u6b64\u3002\u7814\u8ba8\u4f1a\u4e0a\u7684\u8ba8\u8bba\u7684\u8bdd\u9898\u4e4b\u4e00\u5c31\u662f\u73b0\u5b9e\u95ee\u9898\uff0c\u53ef\u80fd\u6211\u4eec\u9700\u8981\u6539\u53d8\u5f53\u524d\u7684\u63a8\u9001\u884c\u4e3a\uff0c\u652f\u6301\u4e0e\u6d4f\u89c8\u5668\u7f13\u5b58\u76f4\u63a5\u4ea4\u4e92\u3002\u4e0d\u8fc7\u5f53\u524d\uff0c\u63a8\u9001\u8fd8\u505a\u4e0d\u5230\u8fd9\u4e9b\u3002\u63a8\u9001\u54cd\u5e94\u8fdb\u5165\u63a8\u9001\u7f13\u5b58\uff0c\u53ea\u6709\u771f\u5b9e\u8bf7\u6c42\u5b83\u4eec\u65f6\u624d\u4f1a\u653e\u5230 HTTP \u7f13\u5b58\u4e2d\u3002<\/p>\n \u56e0\u6b64\uff0c\u5982\u679c\u4f60\u5728\u63a8\u9001\u8d44\u6e90\uff0c\u5e0c\u671b\u5b83\u4eec\u5728\u672a\u6765\u7684\u67d0\u4e2a\u9875\u9762\u4e2d\u4f7f\u7528\uff0c\u90a3\u4e48\u6d4f\u89c8\u5668\u6709\u53ef\u80fd\u5728\u7528\u5230\u5b83\u4eec\u4e4b\u524d\u5df2\u7ecf\u5c06\u5b83\u4eec\u6254\u51fa\u63a8\u9001\u7f13\u5b58\u4e4b\u5916\u4e86\u3002\u81f3\u5c11\u76ee\u524d\u7684\u5b9e\u73b0\u662f\u8fd9\u6837\u7684\u3002<\/p>\n \u901a\u5e38\uff0c\u5728\u9875\u9762\u7684\u4e0b\u8f7d\u5faa\u73af\u4e2d\uff0c\u4f7f\u7528\u7684\u5e26\u5bbd\u4e4b\u95f4\u4f1a\u5b58\u5728\u95f4\u9699\u3002\u8fd9\u610f\u5473\u7740\u6211\u4eec\u6ca1\u80fd\u5c3d\u5feb\u4e0b\u53d1\u8d44\u6e90\uff0c\u901a\u5e38\u8fd9\u662f\u56e0\u4e3a\u6d4f\u89c8\u5668\u53d1\u73b0\u8d44\u6e90\u7684\u5ef6\u8fdf\u3002<\/p>\n \u5c3d\u7ba1\u6211\u4eec\u5e94\u5f53\u5c3d\u91cf\u4e0b\u53d1\u9875\u9762\u6240\u9700\u8d44\u6e90\u4ee5\u586b\u6ee1\u8fd9\u4e9b\u95f4\u9699\uff0c\u4f46\u901a\u5e38\u4f7f\u7528\u9884\u52a0\u8f7d\u6bd4\u63a8\u9001\u66f4\u597d\u3002\u9884\u52a0\u8f7d\u5c06\u7f13\u5b58\u3001cookie\u4ee5\u53ca\u5185\u5bb9\u534f\u5546\u7eb3\u5165\u8003\u8651\uff0c\u5b83\u4e0d\u4f1a\u50cf\u63a8\u9001\u90a3\u6837\u5b58\u5728\u7740\u8fc7\u5ea6\u53d1\u9001\u6216\u9519\u8bef\u53d1\u9001\u7684\u98ce\u9669\u3002\u5c31\u586b\u8865\u8fd9\u4e9b\u95f4\u9699\u800c\u8a00\uff0c\u63a8\u9001\u5e76\u65e0\u4efb\u4f55\u4f18\u52bf\uff0c\u6240\u6709\u7684\u53ea\u662f\u52a3\u52bf\u3002\u6545\u6700\u597d\u4e0d\u8981\u4f7f\u7528\u63a8\u9001\u8fbe\u6210\u6b64\u76ee\u7684\uff0c\u4f7f\u7528\u9884\u52a0\u8f7d\u5427\u3002<\/p>\n \u4ece\u4e0a\u9762\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0cHTTP \u63a8\u9001\u7684\u4e00\u5927\u7f3a\u70b9\u5c31\u662f\uff0c\u670d\u52a1\u5668\u5e76\u4e0d\u5fc5\u7136\u6e05\u695a\u6d4f\u89c8\u5668\u7684\u7f13\u5b58\u72b6\u6001\uff0c\u56e0\u6b64\u5728\u63a8\u9001\u65f6\u6211\u4eec\u53ef\u80fd\u4f1a\u5c06\u5df2\u5728\u7f13\u5b58\u4e2d\u5b58\u5728\u7684\u8d44\u6e90\u63a8\u9001\u51fa\u53bb\u3002<\/p>\n \u6709\u4e00\u4e2a\u6807\u51c6\u6269\u5c55\u7684\u63d0\u6848\uff0c\u53eb\u505a\u00a0Cache Digests\u3002\u5176\u57fa\u672c\u601d\u60f3\u662f\u6d4f\u89c8\u5668\u5728 HTTP\/2\u8fde\u63a5\u521d\u59cb\u5316\u4e4b\u540e\uff0c\u5411\u670d\u52a1\u5668\u53d1\u9001\u6458\u8981\uff0c\u670d\u52a1\u5668\u5728\u4e0b\u53d1\u8d44\u6e90\u4e4b\u524d\u80fd\u591f\u7cbe\u786e\u5224\u65ad\u8d44\u6e90\u662f\u5426\u5df2\u5728\u6d4f\u89c8\u5668\u7f13\u5b58\u4e2d\u5b58\u5728\u3002\u8be5\u63d0\u6848\u5c1a\u5904\u4e8e\u65e9\u671f\uff0c\u53ef\u80fd\u9700\u8981\u7b80\u5316\uff0c\u8fd9\u6837\u5b9e\u73b0\u8d77\u6765\u82b1\u8d39\u66f4\u5c11\uff0c\u4e0d\u8fc7\u6211\u6562\u8bf4\uff0c\u79bb\u5f00\u8fd9\u4e2a\u7279\u6027\uff0cHTTP \u63a8\u9001\u53ea\u80fd\u7b97\u534a\u6210\u54c1\u3002<\/p>\n HTTP \u63a8\u9001\u53ef\u4ee5\u7528\u6765\u663e\u8457\u63d0\u5347\u52a0\u8f7d\u6027\u80fd\u3002\u6b63\u786e\u4f7f\u7528\u65f6\u80fd\u4e3a\u9996\u4e2a\u5173\u952e\u8def\u5f84\u52a0\u8f7d\u63d0\u901f\uff0c\u5e26\u6765\u6027\u80fd\u6307\u6807\u7684\u6539\u5584\u3002\u63a8\u9001\u4f9d\u7136\u662f\u975e\u5e38\u65b0\u7684\u6280\u672f\uff0c\u50cf\u5176\u4ed6\u6240\u6709\u65b0\u5de5\u5177\u4e00\u6837\uff0c\u5728\u627e\u5230\u4f7f\u7528\u7684\u6700\u4f18\u65b9\u5f0f\u4e4b\u524d\uff0c\u8fd8\u6709\u5f88\u957f\u7684\u8def\u8981\u8d70\u3002\u8fd9\u4e00\u8def\u591a\u5c11\u4f1a\u6709\u70b9\u75db\u82e6\u3002<\/p>\n \u662f\u6545\u65e9\u671f\u5b9e\u9a8c\u7684\u521d\u59cb\u7ed3\u679c\uff0c\u53ef\u80fd\u5e76\u975e\u5168\u5982\u6211\u4eec\u6240\u5e0c\u671b\u7684\u90a3\u6837\u3002\u8ba9\u6211\u4eec\u628a\u90a3\u4e9b\u7ed3\u679c\u4f5c\u4e3a\u6807\u5fd7\uff0c\u6307\u793a\u6211\u4eec\u5173\u4e8e\u63a8\u9001\u7684\u4f7f\u7528\u9700\u8981\u66f4\u591a\u806a\u660e\u624d\u667a\u5427\uff0c\u522b\u5984\u4e0b\u7ed3\u8bba\u8bf4\u5b83\u662f\u65e0\u7528\u7684\u7279\u6027\u3002<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn:443\/article-7844-1.html<\/a><\/p>\n |