{"id":5545,"date":"2024-04-09T20:16:00","date_gmt":"2024-04-09T12:16:00","guid":{"rendered":"https:\/\/tenten.co\/blog\/?p=5545"},"modified":"2024-04-09T21:06:46","modified_gmt":"2024-04-09T13:06:46","slug":"brotli-gzip-compare","status":"publish","type":"post","link":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/","title":{"rendered":"Brotli \u548c Gzip \u58d3\u7e2e\u6f14\u7b97\u6cd5\u5728\u52a0\u901f\u7db2\u7ad9\u901f\u5ea6\u4e0a\u7684\u5dee\u7570"},"content":{"rendered":"<p>\u60a8\u662f\u5426\u6b63\u5728\u5c0b\u627e\u514d\u8cbb\u7684\u65b9\u6cd5\u4f86\u63d0\u9ad8\u60a8\u7684\u7db2\u7ad9\u901f\u5ea6\uff1f\u6bcf\u500b\u7db2\u7ad9\u6240\u6709\u8005\u53ef\u4ee5\u7372\u5f97\u4e00\u9ede\u514d\u8cbb\u901f\u5ea6\u7684\u4e00\u7a2e\u65b9\u6cd5\u662f\u5728\u4f3a\u670d\u5668\u4e0a\u6253\u958b\u58d3\u7e2e\u3002\u7576\u8207\u4e4b\u901a\u8a0a\u7684\u7db2\u8def\u4f3a\u670d\u5668\u548c\u700f\u89bd\u5668\u90fd\u4e86\u89e3\u901a\u7528\u7684\u58d3\u7e2e\u6f14\u7b97\u6cd5\u6642\uff0c\u5c31\u53ef\u4ee5\u58d3\u7e2e\u5be6\u969b\u900f\u904e\u7dda\u8def\u767c\u9001\u7684\u8cc7\u6599\u3002\u58d3\u7e2e\u5f8c\u7684\u8cc7\u6599\u66f4\u5c0f\u3002\u8cc7\u6599\u8d8a\u5c0f\uff0c\u63a5\u6536\u901f\u5ea6\u8d8a\u5feb\u3002 <\/p>\n<h2><strong>\u4ec0\u9ebc\u662f\u7db2\u7ad9\u6a94\u6848\u58d3\u7e2e\uff1f<\/strong><\/h2>\n<p>\u7576\u60a8\u5728\u700f\u89bd\u5668\u4e2d\u8f38\u5165 URL \u6642\uff0c<strong>\u700f\u89bd\u5668\u6703\u958b\u59cb\u8207\u4f3a\u670d\u5668\u5c0d\u8a71<\/strong>\uff0c\u5b83\u6703\u544a\u8a34\u4f3a\u670d\u5668\u662f\u5426\u53ef\u4ee5\u89e3\u58d3\u7e2e\u5167\u5bb9\uff0c\u5982\u679c\u53ef\u4ee5\uff0c\u5b83\u53ef\u4ee5\u7406\u89e3\u4ec0\u9ebc\u58d3\u7e2e\u300c\u6f14\u7b97\u6cd5\u300d\u3002<\/p>\n<p><strong>\u60a8\u7684\u4f3a\u670d\u5668\u6703\u76e3\u807d<\/strong>\uff0c\u5982\u679c\u60a8\u6253\u958b\u4e86\u58d3\u7e2e\u4e26\u4e14\u5b83\u77e5\u9053\u700f\u89bd\u5668\u4f7f\u7528\u7684\u58d3\u7e2e\u6f14\u7b97\u6cd5\u4e4b\u4e00\uff0c\u5b83\u5c07<strong>\u58d3\u7e2e\u6240\u6709\u8cc7\u6599\u4e26\u5c07\u5176\u767c\u9001\u5230\u700f\u89bd\u5668<\/strong>\u3002<\/p>\n<p><strong>\u5927\u591a\u6578\u73fe\u4ee3\u7db2\u9801\u700f\u89bd\u5668\u7406\u89e3\u6216\u300c\u63a5\u53d7\u300d\u4ee5\u4e09\u7a2e\u6f14\u7b97\u6cd5<\/strong>\u4e4b\u4e00\u7de8\u78bc\u7684\u5167\u5bb9\uff1a<\/p>\n<ul>\n<li>Deflate<\/li>\n<li>Gzip<\/li>\n<li>Brotli<\/li>\n<\/ul>\n<p>\u7576\u7db2\u9801\u700f\u89bd\u5668\u806f\u7e6b\u4f3a\u670d\u5668\u6642\uff0c\u5b83\u6703\u767c\u9001\u5982\u4e0b\u6240\u793a\u7684<strong>\u6a19\u982d\uff1a<\/strong><\/p>\n<p><em>\u63a5\u53d7\u7de8\u78bc\uff1abr\u3001gzip<\/em><\/p>\n<p>\u9019\u544a\u8a34\u4f3a\u670d\u5668\u5b83\u7406\u89e3\u4ee5 Brotli (br) \u6216 Gzip (gzip) \u58d3\u7e2e\u7684\u8cc7\u6599\u3002\u4f3a\u670d\u5668\u78ba\u5be6\u53ef\u4ee5\u9078\u64c7\u5ffd\u7565\u9019\u4e00\u9ede\u4e26\u50b3\u56de\u672a\u58d3\u7e2e\u7684\u8cc7\u6599\u3002 <\/p>\n<p>\u4f46\u7e3d\u7684\u4f86\u8aaa\uff0c<strong>\u58d3\u7e2e\u8cc7\u6599\u6bd4\u672a\u58d3\u7e2e\u8cc7\u6599\u50b3\u8f38\u5f97\u66f4\u5feb<\/strong>\u3002\u56e0\u6b64\uff0c\u5982\u679c\u8cc7\u6599\u7d93\u904e\u58d3\u7e2e\uff0c\u60a8\u7684\u7db2\u7ad9\u9020\u8a2a\u700f\u89bd\u5668\u7684\u901f\u5ea6\u6703\u66f4\u5feb\u3002<\/p>\n<p>\u58d3\u7e2e\u4e3b\u8981\u9069\u7528\u65bc\u6587\u5b57\uff1a<\/p>\n<ul>\n<li>\u8d85\u6587\u672c\u6a19\u8a18\u8a9e\u8a00<\/li>\n<li>JavaScript<\/li>\n<li>CSS<\/li>\n<\/ul>\n<p>\u9019\u4e9b\u69cb\u6210\u4e86\u7576\u4eca\u73fe\u4ee3\u7db2\u7ad9\u7684\u5f88\u5927\u4e00\u90e8\u5206\uff0c\u6240\u6709\u9019\u4e9b\u90fd\u53ef\u4ee5\u900f\u904e\u4f3a\u670d\u5668\u7aef\u58d3\u7e2e\u6f14\u7b97\u6cd5\u9032\u884c\u58d3\u7e2e\u3002 <\/p>\n<p>\u53e6\u4e00\u65b9\u9762\uff0c<strong>\u5927\u591a\u6578\u5716\u50cf\u683c\u5f0f<\/strong>\uff08jpg\u3001png\u7b49\uff09\u3001\u5927\u591a\u6578<strong>\u97f3\u8a0a<\/strong>\u683c\u5f0f\uff08mp3\uff09\u548c\u5176\u4ed6<strong>\u975e\u6587\u5b57\u4e8c\u9032\u4f4d\u6a94\u6848\u5df2\u7d93\u88ab\u58d3\u7e2e<\/strong>\u3002\u58d3\u7e2e\u9019\u4e9b\u4e0d\u6703\u7522\u751f\u4efb\u4f55\u5340\u5225\uff0c\u56e0\u6b64\u7121\u8ad6 Accept-Encoding \u6a19\u982d\u5982\u4f55\uff0c\u4f3a\u670d\u5668\u90fd\u6703\u6309\u539f\u6a23\u767c\u9001\u9019\u4e9b\u3002<\/p>\n<p>\u5982\u4e0a\u6240\u8ff0\uff0c\u5927\u591a\u6578\u73fe\u4ee3 Web \u700f\u89bd\u5668\u5c07\u63a5\u53d7 3 \u7a2e\u4e3b\u8981\u7684\u58d3\u7e2e\u6f14\u7b97\u6cd5\u3002\u5927\u591a\u6578\u4f3a\u670d\u5668\u73fe\u5728\u5df2\u9077\u79fb\u5230\u5169\u7a2e\u6700\u53d7\u6b61\u8fce\u7684\u4f3a\u670d\u5668\u4e4b\u4e00\u6216\u5168\u90e8\uff1a<strong>Gzip \u548c Brotli\u3002<\/strong><\/p>\n<h2><strong>\u4ec0\u9ebc\u662f Gzip \u58d3\u7e2e\uff1f<\/strong><\/h2>\n<p>\u5169\u7a2e\u6700\u5e38\u898b\u7684\u58d3\u7e2e\u6f14\u7b97\u6cd5\u662f Gzip \u548c Brotli\u3002 Gzip \u662f\u5169\u8005\u4e2d\u6700\u53e4\u8001\u4e14\u6700\u5e38\u898b\u7684\u3002\u5b83\u7684\u4f5c\u8005\u662f\u8b93\u00b7\u76e7\u00b7\u84cb\u5229 (Jean-loup Gailly) \u548c\u99ac\u514b\u00b7\u963f\u5fb7\u52d2 (Mark Adler)\u3002\u6700\u521d\u7684\u6e2c\u8a66\u7248\u65bc 1992 \u5e74\u767c\u5e03\u3002\u7b2c\u4e00\u500b\u5be6\u969b\u7248\u672c 1.0 \u65bc 1993 \u5e74\u521d\u767c\u5e03\u3002\u65e9\u5728 1992 \u5e74\uff0c\u5927\u591a\u6578\u4eba\u525b\u958b\u59cb\u4f7f\u7528\u7db2\u8def\u3002 <\/p>\n<p>Gzip \u88ab\u8a2d\u8a08\u70ba<strong>\u901a\u7528\u58d3\u7e2e\u51fd\u5f0f\u5eab<\/strong>\u3002 Gzip \u80cc\u5f8c\u7684\u7406\u8ad6\u662f\u57fa\u65bc\u65e9\u671f\u7684\u58d3\u7e2e\u6f14\u7b97\u6cd5 DEFLATE\u3002 <\/p>\n<p>\u7531\u65bc\u5b83\u7684\u53d7\u6b61\u8fce\u7a0b\u5ea6 &#8211; \u4ee5\u53ca\u5b83\u975e\u5e38\u64c5\u9577\u4f7f\u6a94\u6848\u8b8a\u5c0f &#8211; \u5b83\u81f3\u4eca<strong>\u4ecd\u7136\u5728\u4e0d\u540c\u7684\u4f5c\u696d\u7cfb\u7d71\u4e2d<\/strong> <strong>\u5ee3\u6cdb\u4f7f\u7528\uff0c<\/strong>\u4e26\u4e14\u662f\u7db2\u8def\u4f3a\u670d\u5668\u7684\u4e3b\u8981\u58d3\u7e2e\u6f14\u7b97\u6cd5\u3002 <\/p>\n<h2><strong>\u4ec0\u9ebc\u662f Brotli \u58d3\u7e2e\uff1f<\/strong><\/h2>\n<p>Brotli \u7531 Google \u54e1\u5de5 Jyrki Alakuijala \u548c Zolt\u00e1n Szabadka \u65bc 2013 \u5e74\u958b\u767c\u3002Google \u6700\u521d\u662f\u5728\u5c0b\u627e\u4e00\u7a2e\u66f4\u597d\u7684\u65b9\u6cd5\u4f86\u58d3\u7e2e WOT \u6a94\u6848\uff08\u7db2\u9801\u5b57\u9ad4\uff09\u3002 <\/p>\n<p>Gzip \u6700\u521d\u65e8\u5728\u58d3\u7e2e\u6587\u4ef6\uff0c\u73fe\u5728\u5df2\u9069\u61c9\u58d3\u7e2e\u6d41\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u5728\u7db2\u8def\u4e0a\u904b\u884c\u3002\u53e6\u4e00\u65b9\u9762\uff0cBrotli \u5f9e\u4e00\u958b\u59cb\u5c31\u662f\u70ba\u4e86<strong>\u58d3\u7e2e\u6d41<\/strong>\u800c\u8a2d\u8a08\u7684\u3002\u9019\u4f7f\u5f97<strong>Web \u4f3a\u670d\u5668<\/strong>\u5728\u5c07\u5167\u5bb9\u4e32\u6d41\u50b3\u8f38\u5230\u700f\u89bd\u5668\u4e4b\u524d\u58d3\u7e2e\u5167\u5bb9\u6210\u70ba\u66f4\u597d\u7684\u9078\u64c7\u3002<\/p>\n<p>2015 \u5e74\uff0cGoogle \u767c\u5e03\u4e86<strong>HTTP \u7684 Brotli \u898f\u7bc4<\/strong>\u3002\u9664\u4e86\u6307\u5b9a\u700f\u89bd\u5668\u61c9\u5982\u4f55\u900f\u904e\u767c\u9001_\u300cContent-Encoding: br\u300d_\u6a19\u982d\u4f86\u901a\u77e5\u4f3a\u670d\u5668\u53ef\u4ee5\u89e3\u58d3\u7e2e Brotli \u4e4b\u5916\uff0cGoogle \u5de5\u7a0b\u5e2b\u9084\u5c0d Brotli \u9032\u884c\u4e86\u5176\u4ed6\u6539\u9032\uff0c\u4f7f\u5176<strong>\u58d3\u7e2e Web \u5167\u5bb9\u7684\u901f\u5ea6\u66f4\u5feb<\/strong>\u3002<\/p>\n<h2><strong>Brotli \u548c Gzip \u58d3\u7e2e\u6709\u4ec0\u9ebc\u4e0d\u540c\uff1f<\/strong><\/h2>\n<p>\u96d6\u7136\u5b83\u5011\u90fd\u8d77\u6e90\u65bc LZ77 \u6f14\u7b97\u6cd5\uff0c\u4f46<strong>Gzip \u662f\u5c08\u9580\u70ba\u58d3\u7e2e\u6a94\u6848\u800c\u8a2d\u8a08\u7684<\/strong>\u3002\u8a72\u5eab\u5df2\u88ab\u5408\u4f75\u5230\u8a31\u591a\u9700\u8981\u58d3\u7e2e\u6a94\u6848\u7684\u4e0d\u540c\u7a0b\u5f0f\u4e2d\u3002\u96a8\u8457\u58d3\u7e2e\u5167\u5bb9\u958b\u59cb\u6210\u70ba\u5e38\u614b\uff0c\u8a72\u5eab\u88ab\u5408\u4f75\u5230\u7db2\u9801\u4f3a\u670d\u5668\u4e2d\u3002\u5b83\u662f RFC 2616\uff08HTTPS 1.1 \u898f\u683c\uff09\u4e2d\u6307\u5b9a\u7684\u5169\u7a2e\u58d3\u7e2e\u6f14\u7b97\u6cd5\u4e4b\u4e00\u3002\u96d6\u7136\u5b83\u4e0d\u662f\u5c08\u9580\u70ba\u7db2\u9801\u4f3a\u670d\u5668\u7b49\u4e32\u6d41\u5a92\u9ad4\u64cd\u4f5c\u800c\u8a2d\u8a08\u7684\uff0c\u4f46\u5b83\u5df2\u7d93\u9069\u61c9\u4e86\u9019\u7a2e\u60c5\u6cc1\u3002<\/p>\n<p>\u53e6\u4e00\u65b9\u9762\uff0c<strong>Brotli**<\/strong>\u662f\u5c08\u9580\u70ba\u7db2\u8def\u8a2d\u8a08\u7684**\u3002 Google \u610f\u8b58\u5230\u9700\u8981\u4e00\u7a2e\u66f4\u6709\u6548\u5730\u58d3\u7e2e\u6d41\u7684\u65b9\u6cd5\uff0c\u56e0\u6b64\u4ed6\u5011\u8a2d\u8a08\u4e86 Brotli\u3002<\/p>\n<p>\u9019\u5169\u7a2e\u6f14\u7b97\u6cd5\u90fd\u5f88\u597d\u5730\u5b8c\u6210\u4e86\u5b83\u5011\u7684\u8a2d\u8a08\u4efb\u52d9\u3002 Gzip \u4ecd\u7136\u7e7c\u7e8c\u5728\u7db2\u8def\u4e0a\u4f7f\u7528\uff0c\u56e0\u70ba\u5b83\u4ecd\u7136\u6bd4\u6c92\u6709\u597d\u3002\u7136\u800c\uff0c\u96a8\u8457 Brotli \u8d8a\u4f86\u8d8a\u53d7\u6b61\u8fce\uff0c<strong>\u8d8a\u4f86\u8d8a\u591a\u7684 Web \u4f3a\u670d\u5668\u66f4\u559c\u6b61 Brotli \u800c\u4e0d\u662f Gzip<\/strong>\u3002<\/p>\n<p>\u8acb\u89c0\u770b\u4ee5\u4e0b\u8996\u983b\uff0c\u4ee5\u4e86\u89e3\u6709\u95dc Brotli \u548c Gzip \u4e4b\u9593\u5dee\u7570\u7684\u66f4\u591a\u53c3\u8003\uff01<\/p>\n<h2><strong>Brotli \u548c Gzip \u57fa\u6e96\u6e2c\u8a66<\/strong><\/h2>\n<p>\u7576 Brotli \u8207 gzip \u9032\u884c\u57fa\u6e96\u6e2c\u8a66\u6642\uff0c\u767c\u73fe\u5b83\u53ef\u4ee5\u66f4\u597d\u5730\u58d3\u7e2e\u6a94\u6848\uff1a<\/p>\n<ul>\n<li>JavaScript \u6a94\u6848\u5c0f 14%<\/li>\n<li>HTML \u6a94\u6848\u5c0f 21%<\/li>\n<li>CSS \u6a94\u6848\u5c0f 17%<\/li>\n<\/ul>\n<p>\u7531\u65bc<strong>Brotli<\/strong>\u88ab\u8a2d\u8a08\u70ba\u52d5\u614b\u58d3\u7e2e\u6d41\uff0c\u56e0\u6b64\u5b83<strong>\u5728\u4f3a\u670d\u5668\u4e0a\u58d3\u7e2e\u5167\u5bb9\u548c<\/strong> <strong>\u5728\u700f\u89bd\u5668\u4e2d<\/strong>\u89e3\u58d3\u7e2e\u5167\u5bb9\u6bd4 gzip \u66f4\u5feb\u3002\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u6574\u9ad4\u524d\u7aef\u89e3\u58d3\u7e2e\u901f\u5ea6\u6bd4 gzip \u5feb 64%\u3002<\/p>\n<h2><strong>\u5982\u4f55\u5728\u6211\u7684\u7db2\u7ad9\u4e0a\u555f\u7528\u58d3\u7e2e\uff1f<\/strong><\/h2>\n<p>\u7c21\u55ae\u4f86\u8aaa\uff0c\u300c\u958b\u555f\u58d3\u7e2e\u300d\u53ea\u662f\u610f\u5473\u8457\u544a\u8a34\u60a8\u7684\u7db2\u9801\u4f3a\u670d\u5668\u5728\u5c07\u6240\u6709\u5167\u5bb9\u50b3\u9001\u5230\u5df2\u5ba3\u5e03\u53ef\u4ee5\u8655\u7406\u58d3\u7e2e\u7684\u700f\u89bd\u5668\u4e4b\u524d\u58d3\u7e2e\u6240\u6709\u5167\u5bb9\u3002<\/p>\n<p>\u5982\u679c\u60a8\u662f\u4f3a\u670d\u5668\u7ba1\u7406\u54e1\uff0c\u60a8\u5c31\u6703\u77e5\u9053\u5982\u4f55\u7de8\u8f2f\u8a2d\u5b9a\u6a94\u3002\u5982\u679c\u60a8\u4e0d\u662f\u4f3a\u670d\u5668\u7ba1\u7406\u54e1\uff0c\u8acb\u8df3\u904e\u672c\u7bc0\u4e26\u76f4\u63a5\u6372\u52d5\u5230\u4e0b\u9762\u7684\u300c\u5982\u679c\u6211\u4e0d\u662f\u4f3a\u670d\u5668\u7ba1\u7406\u54e1\u300d\u90e8\u5206\u3002<\/p>\n<h3><strong>\u5982\u679c\u6211\u4f7f\u7528 Apache<\/strong><\/h3>\n<p>\u5982\u679c\u60a8\u4f7f\u7528 Apache Web \u4f3a\u670d\u5668\uff0c\u5247\u9700\u8981\u57f7\u884c<strong>2 \u500b\u6b65\u9a5f<\/strong>\u4f86\u555f\u7528 Brotli \u58d3\u7e2e\uff1a<\/p>\n<ul>\n<li>\u9996\u5148\uff0c\u555f\u7528 apache Brotli \u6a21\u7d44\u3002\u9810\u8a2d\u5305\u542b\u5b83\uff0c\u4f46\u53ef\u80fd\u672a\u555f\u7528\uff1a<\/li>\n<\/ul>\n<p><em>$ sudo a2enmod brotli<\/em> <\/p>\n<ul>\n<li>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u7de8\u8f2f\u60a8\u7684\u7db2\u7ad9\u4e3b\u6a5f\u8a2d\u5b9a\u6a94\u4e26\u544a\u8a34\u4f3a\u670d\u5668\u60a8\u8981\u5c07\u58d3\u7e2e\u5957\u7528\u5230\u4ec0\u9ebc\uff1a<\/li>\n<\/ul>\n<p><em>&lt;IfModule mod_brotli.c&gt;<\/em><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<em>AddOutputFilterByType BROTLI_COMPRESS \u6587\u5b57\/html \u6587\u5b57\/\u7d14\u6587\u5b57\/xml \u6587\u5b57\/css \u6587\u5b57\/javascript \u61c9\u7528\u7a0b\u5f0f\/javascript<\/em><\/p>\n<p><em>&lt;\/\u5982\u679c\u6a21\u7d44&gt;<\/em><\/p>\n<p>\u5728\u4e0a\u9762\u7684\u7bc4\u4f8b\u4e2d\uff0c\u6211\u5011\u544a\u8a34 Web \u4f3a\u670d\u5668\u9032\u884c\u58d3\u7e2e\uff1a<\/p>\n<ul>\n<li>\u8d85\u6587\u672c\u6a19\u8a18\u8a9e\u8a00<\/li>\n<li>\u7d14\u6587\u5b57<\/li>\n<li>CSS<\/li>\n<li>JavaScript<\/li>\n<\/ul>\n<p>\u9019\u4e9b\u662f\u53ef\u58d3\u7e2e\u7684\u4e3b\u8981\u6a94\u6848\u985e\u578b\u3002<\/p>\n<h3><strong>\u5982\u679c\u6211\u4f7f\u7528 Nginx<\/strong><\/h3>\n<p>Nginx \u662f\u53e6\u4e00\u500b\u975e\u5e38\u53d7\u6b61\u8fce\u7684 Web \u4f3a\u670d\u5668\u3002\u8207 Apache \u4e00\u6a23\uff0c\u5b83\u7531\u8a2d\u5b9a\u6a94\u63a7\u5236\u3002\u60a8\u9700\u8981\u627e\u5230_nginx.conf_\u6a94\u6848\u4e26<strong>\u65b0\u589e\u4ee5\u4e0b\u5169\u884c\uff1a<\/strong><\/p>\n<p><em>load_module \u6a21\u7d44\/ngx_http_brotli_filter_module.so\uff1b<\/em><\/p>\n<p><em>load_module\u6a21\u7d44\/ngx_http_brotli_static_module.so;<\/em><\/p>\n<p>\u7136\u5f8c\u5728\u60a8\u7db2\u7ad9\u7684\u55ae\u7368conf\u6a94\u6848\u4e2d\uff0c\u60a8\u9700\u8981\u6dfb\u52a0\u4ee5\u4e0b\u5167\u5bb9\uff1a<\/p>\n<p><em>\u5e03\u7f85\u7279\u5229\u4e0a\uff1b<\/em><\/p>\n<p><em>brotli_static \u958b\u555f\uff1b<\/em><\/p>\n<p><em>brotli_types *;<\/em><\/p>\n<p>\u9032\u884c\u66f4\u6539\u5f8c\uff0c\u7121\u8ad6\u662f Apache \u9084\u662f Nginx\uff0c\u8acb\u91cd\u65b0\u555f\u52d5\u60a8\u7684 Web \u4f3a\u670d\u5668\uff0c\u73fe\u5728\u5982\u679c\u700f\u89bd\u5668\u767c\u9001_\u300cAccept-Encoding\u300d\u6a19\u982d\uff0c\u5b83\u5c07\u4ee5_<em>\u300cContent-Encoding<\/em> \u300d\u6a19\u982d\u56de\u61c9\u3002<\/p>\n<h3><strong>\u5982\u679c\u6211\u4e0d\u662f\u4f3a\u670d\u5668\u7ba1\u7406\u54e1<\/strong><\/h3>\n<p>\u5982\u679c\u60a8\u4e0d\u662f\u4f3a\u670d\u5668\u7ba1\u7406\u54e1\uff0c\u90a3\u9ebc\u5728\u4f3a\u670d\u5668\u4e0a\u555f\u7528\u58d3\u7e2e\u5be6\u969b\u4e0a\u8981\u5bb9\u6613\u5f97\u591a\u3002<\/p>\n<p>\u50cf Tenten \u63d0\u4f9b\u7684 <a href=\"https:\/\/tenten.co\/services\/hosting\">AWS \u96f2\u7aef\u4e3b\u6a5f<\/a>\u8207 <a href=\"https:\/\/tenten.co\/wpfixer\">WordPress \u52a0\u901f\u670d\u52d9<\/a>\u7b49\u9802\u7d1a\u4e3b\u6a5f\u90fd\u5e0c\u671b\u8b93\u5ba2\u6236\u7684\u7db2\u7ad9\u76e1\u53ef\u80fd\u5feb\uff0c\u4e26\u76e1\u53ef\u80fd\u7bc0\u7701\u983b\u5bec\u3002\u9019\u662f\u555f\u7528\u58d3\u7e2e\u7684\u5169\u500b\u6700\u5927\u597d\u8655\u3002\u56e0\u6b64\uff0c\u9802\u7d1a\u4e3b\u6a5f\u9810\u8a2d\u958b\u555f\u58d3\u7e2e\u3002 <\/p>\n<p>\u9700\u8981\u78ba\u4fdd\u60a8\u7684 Web \u4e3b\u6a5f\u5728 Web \u4f3a\u670d\u5668\u4e0a\u958b\u555f\u58d3\u7e2e\u529f\u80fd\u3002\u5982\u679c\u4ed6\u5011\u4e0d\u9019\u6a23\u505a\uff0c\u4e5f\u4e0d\u6703\u70ba\u60a8\u6253\u958b\u5b83\uff0c\u90a3\u9ebc\u5c31\u8a72\u5c0b\u627e\u65b0\u7684\u96f2\u7aef\u4e3b\u6a5f\u670d\u52d9\u5546\u4e86\u3002<\/p>\n<h2><strong>\u5982\u4f55\u6e2c\u8a66 Brotli \u548c Gzip \u58d3\u7e2e\uff1f<\/strong><\/h2>\n<p>\u90a3\u9ebc\u5982\u4f55\u5224\u65b7\u60a8\u7684\u7db2\u7ad9\u662f\u5426\u555f\u7528\u4e86\u58d3\u7e2e\u5462\uff1f\u6709\u5e7e\u7a2e\u65b9\u6cd5\u53ef\u4ee5\u505a\u5230\u9019\u4e00\u9ede\u3002 <\/p>\n<h3><strong>\u8f03\u56f0\u96e3\u7684\u65b9\u6cd5<\/strong><\/h3>\n<ul>\n<li>\n<p>\u6253\u958b\u700f\u89bd\u5668\u3002\u6211\u5c07\u5728\u672c\u4f8b\u4e2d\u4f7f\u7528 Chrome\uff0c\u4f46\u9019\u500b\u6982\u5ff5\u9069\u7528\u65bc\u4efb\u4f55\u700f\u89bd\u5668\u3002\u4e0d\u904e\uff0c\u4e0d\u540c\u54c1\u724c\u7684\u700f\u89bd\u5668\u7684\u9078\u9805\u540d\u7a31\u53ef\u80fd\u6703\u7565\u6709\u4e0d\u540c\u3002<\/p>\n<\/li>\n<li>\n<p>\u53f3\u9375\u55ae\u64ca\u700f\u89bd\u5668\u4e0a\u7684\u4efb\u610f\u4f4d\u7f6e\u4e26\u9078\u64c7<strong>\u201c\u6aa2\u67e5\u201d<\/strong><\/p>\n<\/li>\n<li>\n<p>\u9019\u5c07\u5728\u5074\u9762\u6216\u5e95\u90e8\u6253\u958b\u4e00\u500b\u7a97\u53e3\uff0c\u9019\u662f\u4e00\u500b\u975e\u5e38\u7e41\u5fd9\u7684\u7a97\u53e3\u3002\u8a72\u8996\u7a97\u6709\u5e7e\u500b\u540d\u7a31\u5982\u4e0b\u7684\u9078\u9805\u3002<\/p>\n<\/li>\n<li>\n<p>Elements<\/p>\n<\/li>\n<li>\n<p>Console<\/p>\n<\/li>\n<li>\n<p>Sources<\/p>\n<\/li>\n<li>\n<p>Network<\/p>\n<\/li>\n<li>\n<p>Performance<\/p>\n<\/li>\n<li>\n<p>Etc\u2026<\/p>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/wCC5JXD.png\" alt=\"\u7db2\u8def\u9078\u9805\u5361\" \/><\/p>\n<ul>\n<li>\u627e\u5230<strong>\u201c\u7db2\u8def\u201d<\/strong>\u6a19\u7c64\u3002<\/li>\n<li>\u5728\u4e0a\u9762\u7684 URL \u65b9\u584a\u4e2d\uff0c\u8f38\u5165\u60a8\u7db2\u7ad9\u7684 URL\uff0c\u7136\u5f8c\u6309 Enter \u9375\u3002\u9019\u5c07\u7528\u8a31\u591a\u4e0d\u540c\u7684\u8a18\u9304\u586b\u5145\u7db2\u8def\u9078\u9805\u5361\u3002\u5411\u4e0a\u6372\u52d5\u5230\u7b2c\u4e00\u7b46\u8a18\u9304\u3002\u5b83\u61c9\u8a72\u53ea\u662f\u60a8\u7684\u7db2\u57df\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/9f7Abpm.png\" alt=\"\u5728\u7db2\u8def\u6a19\u7c64\u4e2d\u627e\u5230\u60a8\u7684\u7db2\u57df\" \/><\/p>\n<ul>\n<li>\u6309\u4e00\u4e0b\u7b2c\u4e00\u7b46\u8a18\u9304\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/DMN9Avr.png\" alt=\"\u6309\u4e00\u4e0b\u7db2\u8def\u6a19\u7c64\u4e2d\u7684\u7b2c\u4e00\u7b46\u8a18\u9304\" \/><\/p>\n<ul>\n<li>\u627e\u5230_\u201caccept-encoding\u201d_\u6a19\u982d\u3002\u5b83\u5c07\u4f4d\u65bc<strong>\u201c\u8acb\u6c42\u6a19\u982d\u201d<\/strong>\u90e8\u5206\u3002\u9019\u4e9b\u662f\u60a8\u7684\u700f\u89bd\u5668\u767c\u9001\u5230\u4f3a\u670d\u5668\u7684\u6a19\u982d\u3002\u5982\u679c\u60a8\u6c92\u6709\u6b64\u6a19\u982d\uff0c\u8acb\u5617\u8a66\u5176\u4ed6\u700f\u89bd\u5668\uff0c\u56e0\u70ba\u5982\u679c\u700f\u89bd\u5668\u4e0d\u767c\u9001\u58d3\u7e2e\u6a19\u982d\uff0c\u4f3a\u670d\u5668\u5c07\u4e0d\u6703\u58d3\u7e2e\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/9yImsHk.png\" alt=\"\u5728\u7db2\u8def\u6a19\u7c64\u4e2d\u627e\u5230\u56de\u61c9\u6a19\u982d\" \/><\/p>\n<ul>\n<li>\u6700\u5f8c\uff0c\u627e\u5230_\u300c\u5167\u5bb9\u7de8\u78bc\u300d_\u6a19\u982d\u3002\u9019\u5c07\u4f4d\u65bc<strong>\u201c\u97ff\u61c9\u6a19\u982d\u201d<\/strong>\u90e8\u5206\u3002\u9019\u4e9b\u662f\u60a8\u7684\u4f3a\u670d\u5668\u5728\u767c\u9001\u60a8\u7684\u7db2\u7ad9\u4e4b\u524d\u767c\u9001\u5230\u700f\u89bd\u5668\u7684\u6a19\u982d\u3002\u9019\u544a\u8a34\u700f\u89bd\u5668\u4f3a\u670d\u5668\u9078\u64c7 Brotli \u4f5c\u70ba\u58d3\u7e2e\uff0c\u4e26\u4e14\u5b83\u61c9\u8a72\u5728\u986f\u793a\u5167\u5bb9\u6d41\u4e4b\u524d\u89e3\u58d3\u7e2e\u5b83\u5011\u3002<\/li>\n<\/ul>\n<p>\u8001\u5be6\u8aaa\uff0c\u5927\u591a\u6578\u958b\u767c\u4eba\u54e1\uff08\u5305\u62ec\u6211\u81ea\u5df1\uff09\u90fd\u662f\u9019\u6a23\u505a\u7684\u3002\u662f\u7684\uff0c\u5c0d\u65bc\u6c92\u6709\u7d93\u9a57\u7684\u4eba\u4f86\u8aaa\uff0c\u9019\u662f\u4e00\u689d\u8271\u96e3\u7684\u8def\u3002\u5982\u679c\u60a8\u901a\u5e38\u4e0d\u6703\u4f7f\u7528\u300c\u6aa2\u67e5\u300d\u6a19\u7c64\u4f86\u6df1\u5165\u4e86\u89e3\u700f\u89bd\u5668\u548c\u4f3a\u670d\u5668\u4e4b\u9593\u7684\u5c0d\u8a71\uff0c\u90a3\u9ebc\u5b83\u53ef\u80fd\u6703\u4ee4\u4eba\u56f0\u60d1\u3002\u7136\u800c\uff0c\u4e00\u65e6\u60a8\u4e86\u89e3\u8981\u5c0b\u627e\u4ec0\u9ebc\u4ee5\u53ca\u5728\u54ea\u88e1\u5c0b\u627e\uff0c\u9019\u7a2e\u65b9\u6cd5\u5c31\u4e0d\u9700\u8981\u592a\u591a\u52aa\u529b\uff0c\u4e26\u4e14\u96a8\u8655\u53ef\u7528\u3002<\/p>\n<h3><strong>\u7c21\u55ae\u7684\u65b9\u6cd5<\/strong><\/h3>\n<ul>\n<li>\u5728 Cloudflare \u7aef\u53ef\u8f15\u9b06\u555f\u7528 Brotli \u58d3\u7e2e\u529f\u80fd<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/I2KRSdj.jpeg\" alt=\"Cloudflare  Brotli\" \/><\/p>\n<p>\u5118\u7ba1\u5982\u6b64\uff0c\u9084\u662f\u6709\u4eba\u4e0d\u9858\u610f\u9019\u9ebc\u505a\u3002\u5c0d\u65bc\u90a3\u4e9b\u6b63\u5728\u95b1\u8b80\u672c\u6587\u4e26\u5c6c\u65bc\u6b64\u985e\u7684\u4eba\uff0c\u6211\u5411\u60a8\u4ecb\u7d39\u4e00\u7a2e\u7c21\u55ae\u7684\u65b9\u6cd5\u3002<\/p>\n<ul>\n<li>\u5c07\u700f\u89bd\u5668\u6307\u5411 URL <a href=\"https:\/\/www.giftofspeed.com\/gzip-test\/\">https:\/\/www.giftofspeed.com\/gzip-test\/<\/a><\/li>\n<li>\u5728\u63d0\u4f9b\u7684\u65b9\u584a\u4e2d\u8f38\u5165\u60a8\u7db2\u7ad9\u7684\u7db2\u57df\u540d\u7a31\u3002<\/li>\n<li>\u9ede\u9078<strong>\u201c\u6aa2\u67e5\u201d<\/strong>\u6309\u9215\u3002<\/li>\n<\/ul>\n<p>\u8aaa\u771f\u7684\uff0c\u5c31\u662f\u9019\u6a23\u3002\u5728\u6aa2\u67e5\u6211\u7684\u7db2\u7ad9\u6642\uff0c\u5f97\u5230\u4e86\u4ee5\u4e0b\u7d50\u679c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/MSwOcrz.png\" alt=\"\u6aa2\u67e5 Brotli \u662f\u5426\u555f\u7528\" \/><\/p>\n<p>\u9019\u4e0d\u50c5\u544a\u8a34\u6211\uff0c\u6211\u7684\u7db2\u9801\u4f3a\u670d\u5668\u80fd\u5920\u7528 Brotli \u7de8\u78bc\u6211\u7684\u7db2\u7ad9\uff0c\u9084\u544a\u8a34\u6211\uff0c\u6211\u7684\u7db2\u7ad9 80.66% \u90fd\u662f\u52a0\u5bc6\u7684\u3002<\/p>\n<h2><strong>\u7e3d\u7d50<\/strong><\/h2>\n<p>\u7db2\u7ad9\u4e2d\u7684\u58d3\u7e2e\u73fe\u5728\u5df2\u6210\u70ba\u5e38\u614b\uff0c\u56e0\u70ba\u5b83\u53ef\u4ee5\u5e6b\u52a9\u60a8\u7684\u7db2\u7ad9\u8f09\u5165\u901f\u5ea6\u66f4\u5feb\u3002 <\/p>\n<p>\u76ee\u524d\uff0cBrotli \u662f\u53ef\u7528\u65bc\u7db2\u7ad9\u7684\u6700\u4f73\u58d3\u7e2e\u6f14\u7b97\u6cd5\u3002\u5982\u679c\u60a8\u767c\u73fe\u81ea\u5df1\u6c92\u6709\u63d0\u4f9b Brotli\uff0c\u8acb\u79fb\u81f3\u555f\u7528\u4e86 Brotli \u7684\u7db2\u7ad9\u5bc4\u5b58\u5408\u4f5c\u5925\u4f34\u3002\u50cf Tenten \u9078\u64c7\u7684\u96f2\u7aef\u5408\u4f5c\u5925\u4f34\uff01\u4f7f\u7528 Brotli\uff0c\u60a8\u53ef\u4ee5\u7372\u5f97 15-20% \u7684\u8f03\u5c0f\u6587\u4ef6\uff0c\u8f03\u5c0f\u7684\u6587\u4ef6\u610f\u5473\u8457\u7db2\u7ad9\u52a0\u8f09\u901f\u5ea6\u66f4\u5feb\u3002\u8b93\u60a8\u7684\u7db2\u7ad9\u98db\u901f\u767c\u5c55\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u670d\u5668\u58d3\u7e2e\u662f\u4e00\u9805\u5f37\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6\u548c\u6548\u80fd\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u58d3\u7e2e\u6280\u8853\u7684\u512a\u9ede\u548c\u61c9\u7528\uff0c\u4e26\u63d0\u4f9b\u5be6\u7528\u7684\u914d\u7f6e\u6280\u5de7\uff0c\u8b93\u60a8\u5145\u5206\u767c\u63ee\u58d3\u7e2e\u7684\u6f5b\u529b","protected":false},"author":1,"featured_media":5002,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[526,296],"tags":[],"ppma_author":[533],"class_list":{"0":"post-5545","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-dev","8":"category-tech","9":"cs-entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Brotli \u548c Gzip \u58d3\u7e2e\u6f14\u7b97\u6cd5\u5728\u52a0\u901f\u7db2\u7ad9\u901f\u5ea6\u4e0a\u7684\u5dee\u7570 - Tenten Blog<\/title>\n<meta name=\"description\" content=\"\u670d\u5668\u58d3\u7e2e\u662f\u4e00\u9805\u5f37\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6\u548c\u6548\u80fd\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u58d3\u7e2e\u6280\u8853\u7684\u512a\u9ede\u548c\u61c9\u7528\uff0c\u4e26\u63d0\u4f9b\u5be6\u7528\u7684\u914d\u7f6e\u6280\u5de7\uff0c\u8b93\u60a8\u5145\u5206\u767c\u63ee\u58d3\u7e2e\u7684\u6f5b\u529b\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Brotli \u548c Gzip \u58d3\u7e2e\u6f14\u7b97\u6cd5\u5728\u52a0\u901f\u7db2\u7ad9\u901f\u5ea6\u4e0a\u7684\u5dee\u7570 - Tenten Blog\" \/>\n<meta property=\"og:description\" content=\"\u670d\u5668\u58d3\u7e2e\u662f\u4e00\u9805\u5f37\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6\u548c\u6548\u80fd\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u58d3\u7e2e\u6280\u8853\u7684\u512a\u9ede\u548c\u61c9\u7528\uff0c\u4e26\u63d0\u4f9b\u5be6\u7528\u7684\u914d\u7f6e\u6280\u5de7\uff0c\u8b93\u60a8\u5145\u5206\u767c\u63ee\u58d3\u7e2e\u7684\u6f5b\u529b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/\" \/>\n<meta property=\"og:site_name\" content=\"Tenten Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/tentencreative\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-09T12:16:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-09T13:06:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i.imgur.com\/wCC5JXD.png\" \/>\n<meta name=\"author\" content=\"Nancy P\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/tentencreative\" \/>\n<meta name=\"twitter:site\" content=\"@tentencreative\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nancy P\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/\"},\"author\":{\"name\":\"Nancy P\",\"@id\":\"https:\/\/tenten.co\/blog\/#\/schema\/person\/b8f2cfaa5cdbcc9a9be32ad46da81aba\"},\"headline\":\"Brotli \u548c Gzip \u58d3\u7e2e\u6f14\u7b97\u6cd5\u5728\u52a0\u901f\u7db2\u7ad9\u901f\u5ea6\u4e0a\u7684\u5dee\u7570\",\"datePublished\":\"2024-04-09T12:16:00+00:00\",\"dateModified\":\"2024-04-09T13:06:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/\"},\"wordCount\":177,\"publisher\":{\"@id\":\"https:\/\/tenten.co\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/s5.tenten.co\/2024\/04\/tenten_43.jpg\",\"articleSection\":[\"Development\",\"Tech\"],\"inLanguage\":\"zh-TW\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/\",\"url\":\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/\",\"name\":\"Brotli \u548c Gzip \u58d3\u7e2e\u6f14\u7b97\u6cd5\u5728\u52a0\u901f\u7db2\u7ad9\u901f\u5ea6\u4e0a\u7684\u5dee\u7570 - Tenten Blog\",\"isPartOf\":{\"@id\":\"https:\/\/tenten.co\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/s5.tenten.co\/2024\/04\/tenten_43.jpg\",\"datePublished\":\"2024-04-09T12:16:00+00:00\",\"dateModified\":\"2024-04-09T13:06:46+00:00\",\"description\":\"\u670d\u5668\u58d3\u7e2e\u662f\u4e00\u9805\u5f37\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6\u548c\u6548\u80fd\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u58d3\u7e2e\u6280\u8853\u7684\u512a\u9ede\u548c\u61c9\u7528\uff0c\u4e26\u63d0\u4f9b\u5be6\u7528\u7684\u914d\u7f6e\u6280\u5de7\uff0c\u8b93\u60a8\u5145\u5206\u767c\u63ee\u58d3\u7e2e\u7684\u6f5b\u529b\",\"breadcrumb\":{\"@id\":\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#primaryimage\",\"url\":\"https:\/\/s5.tenten.co\/2024\/04\/tenten_43.jpg\",\"contentUrl\":\"https:\/\/s5.tenten.co\/2024\/04\/tenten_43.jpg\",\"width\":1400,\"height\":735},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tenten.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Brotli \u548c Gzip \u58d3\u7e2e\u6f14\u7b97\u6cd5\u5728\u52a0\u901f\u7db2\u7ad9\u901f\u5ea6\u4e0a\u7684\u5dee\u7570\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tenten.co\/blog\/#website\",\"url\":\"https:\/\/tenten.co\/blog\/\",\"name\":\"AI SEO by Tenten - AI-Powered SEO + Technical SEO\",\"description\":\"Shopify Plus\u3001Webflow \u8a8d\u8b49\u5c08\u5bb6\uff01Tenten \u5e6b\u4f60\u5feb\u901f\u5efa\u7f6e\u5c08\u696d\u7db2\u7ad9\",\"publisher\":{\"@id\":\"https:\/\/tenten.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tenten.co\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/tenten.co\/blog\/#organization\",\"name\":\"AI SEO by Tenten - AI-Powered SEO + Technical SEO\",\"url\":\"https:\/\/tenten.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/tenten.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/s5.tenten.co\/2023\/12\/site-icon.png\",\"contentUrl\":\"https:\/\/s5.tenten.co\/2023\/12\/site-icon.png\",\"width\":512,\"height\":512,\"caption\":\"AI SEO by Tenten - AI-Powered SEO + Technical SEO\"},\"image\":{\"@id\":\"https:\/\/tenten.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/tentencreative\/\",\"https:\/\/x.com\/tentencreative\",\"https:\/\/www.linkedin.com\/company\/tentenco\",\"https:\/\/www.instagram.com\/tenten.co\",\"https:\/\/www.youtube.com\/user\/tentencreative\",\"https:\/\/dribbble.com\/tentenco\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/tenten.co\/blog\/#\/schema\/person\/b8f2cfaa5cdbcc9a9be32ad46da81aba\",\"name\":\"Nancy P\",\"description\":\"Experienced Stock Market Researcher and Financial Advisor with a passion for analyzing market trends and helping clients make informed investment decisions. Combining in-depth market knowledge with personalized financial planning to deliver tailored solutions for individuals and businesses.\",\"sameAs\":[\"https:\/\/tenten.co\",\"https:\/\/instagram.com\/tenten.co\",\"https:\/\/www.linkedin.com\/in\/pladoramaria\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/tentencreative\",\"https:\/\/www.youtube.com\/@tentencreative\",\"https:\/\/twitter.com\/erikthought\"],\"url\":\"https:\/\/tenten.co\/blog\/author\/tenten\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Brotli \u548c Gzip \u58d3\u7e2e\u6f14\u7b97\u6cd5\u5728\u52a0\u901f\u7db2\u7ad9\u901f\u5ea6\u4e0a\u7684\u5dee\u7570 - Tenten Blog","description":"\u670d\u5668\u58d3\u7e2e\u662f\u4e00\u9805\u5f37\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6\u548c\u6548\u80fd\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u58d3\u7e2e\u6280\u8853\u7684\u512a\u9ede\u548c\u61c9\u7528\uff0c\u4e26\u63d0\u4f9b\u5be6\u7528\u7684\u914d\u7f6e\u6280\u5de7\uff0c\u8b93\u60a8\u5145\u5206\u767c\u63ee\u58d3\u7e2e\u7684\u6f5b\u529b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/","og_locale":"zh_TW","og_type":"article","og_title":"Brotli \u548c Gzip \u58d3\u7e2e\u6f14\u7b97\u6cd5\u5728\u52a0\u901f\u7db2\u7ad9\u901f\u5ea6\u4e0a\u7684\u5dee\u7570 - Tenten Blog","og_description":"\u670d\u5668\u58d3\u7e2e\u662f\u4e00\u9805\u5f37\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6\u548c\u6548\u80fd\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u58d3\u7e2e\u6280\u8853\u7684\u512a\u9ede\u548c\u61c9\u7528\uff0c\u4e26\u63d0\u4f9b\u5be6\u7528\u7684\u914d\u7f6e\u6280\u5de7\uff0c\u8b93\u60a8\u5145\u5206\u767c\u63ee\u58d3\u7e2e\u7684\u6f5b\u529b","og_url":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/","og_site_name":"Tenten Blog","article_publisher":"https:\/\/www.facebook.com\/tentencreative\/","article_published_time":"2024-04-09T12:16:00+00:00","article_modified_time":"2024-04-09T13:06:46+00:00","og_image":[{"url":"https:\/\/i.imgur.com\/wCC5JXD.png"}],"author":"Nancy P","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/tentencreative","twitter_site":"@tentencreative","twitter_misc":{"\u4f5c\u8005:":"Nancy P","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"3 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#article","isPartOf":{"@id":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/"},"author":{"name":"Nancy P","@id":"https:\/\/tenten.co\/blog\/#\/schema\/person\/b8f2cfaa5cdbcc9a9be32ad46da81aba"},"headline":"Brotli \u548c Gzip \u58d3\u7e2e\u6f14\u7b97\u6cd5\u5728\u52a0\u901f\u7db2\u7ad9\u901f\u5ea6\u4e0a\u7684\u5dee\u7570","datePublished":"2024-04-09T12:16:00+00:00","dateModified":"2024-04-09T13:06:46+00:00","mainEntityOfPage":{"@id":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/"},"wordCount":177,"publisher":{"@id":"https:\/\/tenten.co\/blog\/#organization"},"image":{"@id":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#primaryimage"},"thumbnailUrl":"https:\/\/s5.tenten.co\/2024\/04\/tenten_43.jpg","articleSection":["Development","Tech"],"inLanguage":"zh-TW"},{"@type":"WebPage","@id":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/","url":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/","name":"Brotli \u548c Gzip \u58d3\u7e2e\u6f14\u7b97\u6cd5\u5728\u52a0\u901f\u7db2\u7ad9\u901f\u5ea6\u4e0a\u7684\u5dee\u7570 - Tenten Blog","isPartOf":{"@id":"https:\/\/tenten.co\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#primaryimage"},"image":{"@id":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#primaryimage"},"thumbnailUrl":"https:\/\/s5.tenten.co\/2024\/04\/tenten_43.jpg","datePublished":"2024-04-09T12:16:00+00:00","dateModified":"2024-04-09T13:06:46+00:00","description":"\u670d\u5668\u58d3\u7e2e\u662f\u4e00\u9805\u5f37\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u5347\u7db2\u7ad9\u901f\u5ea6\u548c\u6548\u80fd\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u58d3\u7e2e\u6280\u8853\u7684\u512a\u9ede\u548c\u61c9\u7528\uff0c\u4e26\u63d0\u4f9b\u5be6\u7528\u7684\u914d\u7f6e\u6280\u5de7\uff0c\u8b93\u60a8\u5145\u5206\u767c\u63ee\u58d3\u7e2e\u7684\u6f5b\u529b","breadcrumb":{"@id":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#primaryimage","url":"https:\/\/s5.tenten.co\/2024\/04\/tenten_43.jpg","contentUrl":"https:\/\/s5.tenten.co\/2024\/04\/tenten_43.jpg","width":1400,"height":735},{"@type":"BreadcrumbList","@id":"https:\/\/tenten.co\/blog\/tech\/brotli-gzip-compare\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tenten.co\/blog\/"},{"@type":"ListItem","position":2,"name":"Brotli \u548c Gzip \u58d3\u7e2e\u6f14\u7b97\u6cd5\u5728\u52a0\u901f\u7db2\u7ad9\u901f\u5ea6\u4e0a\u7684\u5dee\u7570"}]},{"@type":"WebSite","@id":"https:\/\/tenten.co\/blog\/#website","url":"https:\/\/tenten.co\/blog\/","name":"AI SEO by Tenten - AI-Powered SEO + Technical SEO","description":"Shopify Plus\u3001Webflow \u8a8d\u8b49\u5c08\u5bb6\uff01Tenten \u5e6b\u4f60\u5feb\u901f\u5efa\u7f6e\u5c08\u696d\u7db2\u7ad9","publisher":{"@id":"https:\/\/tenten.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tenten.co\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Organization","@id":"https:\/\/tenten.co\/blog\/#organization","name":"AI SEO by Tenten - AI-Powered SEO + Technical SEO","url":"https:\/\/tenten.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/tenten.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/s5.tenten.co\/2023\/12\/site-icon.png","contentUrl":"https:\/\/s5.tenten.co\/2023\/12\/site-icon.png","width":512,"height":512,"caption":"AI SEO by Tenten - AI-Powered SEO + Technical SEO"},"image":{"@id":"https:\/\/tenten.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/tentencreative\/","https:\/\/x.com\/tentencreative","https:\/\/www.linkedin.com\/company\/tentenco","https:\/\/www.instagram.com\/tenten.co","https:\/\/www.youtube.com\/user\/tentencreative","https:\/\/dribbble.com\/tentenco"]},{"@type":"Person","@id":"https:\/\/tenten.co\/blog\/#\/schema\/person\/b8f2cfaa5cdbcc9a9be32ad46da81aba","name":"Nancy P","description":"Experienced Stock Market Researcher and Financial Advisor with a passion for analyzing market trends and helping clients make informed investment decisions. Combining in-depth market knowledge with personalized financial planning to deliver tailored solutions for individuals and businesses.","sameAs":["https:\/\/tenten.co","https:\/\/instagram.com\/tenten.co","https:\/\/www.linkedin.com\/in\/pladoramaria\/","https:\/\/x.com\/https:\/\/twitter.com\/tentencreative","https:\/\/www.youtube.com\/@tentencreative","https:\/\/twitter.com\/erikthought"],"url":"https:\/\/tenten.co\/blog\/author\/tenten\/"}]}},"authors":[{"term_id":533,"user_id":1,"is_guest":0,"slug":"tenten","display_name":"Nancy P","avatar_url":{"url":"https:\/\/s5.tenten.co\/2024\/06\/Kelly-w.jpg","url2x":"https:\/\/s5.tenten.co\/2024\/06\/Kelly-w.jpg"},"first_name":"Nancy","last_name":"P","user_url":"https:\/\/tenten.co","job_title":"Marketer","tiktok":"","youtube":"https:\/\/www.youtube.com\/@tentencreative","linkedin":"https:\/\/www.linkedin.com\/in\/maria-ning\/","instagram":"https:\/\/instagram.com\/tenten.co","twitter":"https:\/\/twitter.com\/tentencreative","facebook":"","description":"Experienced Stock Market Researcher and Financial Advisor with a passion for analyzing market trends and helping clients make informed investment decisions. Combining in-depth market knowledge with personalized financial planning to deliver tailored solutions for individuals and businesses."}],"_links":{"self":[{"href":"https:\/\/tenten.co\/blog\/wp-json\/wp\/v2\/posts\/5545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tenten.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tenten.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tenten.co\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tenten.co\/blog\/wp-json\/wp\/v2\/comments?post=5545"}],"version-history":[{"count":0,"href":"https:\/\/tenten.co\/blog\/wp-json\/wp\/v2\/posts\/5545\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tenten.co\/blog\/wp-json\/wp\/v2\/media\/5029"}],"wp:attachment":[{"href":"https:\/\/tenten.co\/blog\/wp-json\/wp\/v2\/media?parent=5545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tenten.co\/blog\/wp-json\/wp\/v2\/categories?post=5545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tenten.co\/blog\/wp-json\/wp\/v2\/tags?post=5545"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/tenten.co\/blog\/wp-json\/wp\/v2\/ppma_author?post=5545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}