{"id":1675,"date":"2017-07-21T11:03:52","date_gmt":"2017-07-21T03:03:52","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1675"},"modified":"2017-07-21T11:03:52","modified_gmt":"2017-07-21T03:03:52","slug":"etag%e7%bc%93%e5%ad%98%e5%92%8cif-none-match%e7%bc%93%e5%ad%98","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1675","title":{"rendered":"Etag\u7f13\u5b58\u548cIf-None-Match\u7f13\u5b58"},"content":{"rendered":"<p>\n\t\u5408\u7406\u7684\u4f7f\u7528\u6d4f\u89c8\u5668\u7f13\u5b58\uff0c\u5bf9\u6211\u4eec\u670d\u52a1\u5668\u4f1a\u51cf\u8f7b\u4e0d\u5c11\u538b\u529b\u3002\u4e00\u4e2aweb\u7a0b\u5e8f\u8bbe\u8ba1\u7684\u597d\u4e0d\u597d\uff0c\u7f13\u5b58\u4e5f\u662f\u5f88\u91cd\u8981\u7684\u4e00\u90e8\u5206\u3002\u672c\u6587\u4e3b\u8981\u8bb2\u89e3Etag\u7f13\u5b58\u548cIf-None-Match\u7f13\u5b58\u3002\n<\/p>\n<p>\n\t\u7f13\u5b58\u7684\u5206\u7c7b\uff0c\u7f51\u4e0a\u4f17\u8bf4\u7eb7\u7ead\uff0c\u4f46\u662f\u5927\u81f4\u6709\u4ee5\u4e0b\u51e0\uff1a\u6d4f\u89c8\u5668\u7f13\u5b58\uff0cCDN\u7f13\u5b58\uff0c\u6570\u636e\u5e93\u7f13\u5b58\uff0c\u4ee3\u7406\u670d\u52a1\u5668\u7f13\u5b58\uff1b\u4f46\u672c\u6587\u8bf4\u7684\u662f\u6d4f\u89c8\u5668\u7f13\u5b58\u3002\n<\/p>\n<p>\n\t\u6211\u4eec\u6709\u65f6\u5019\u6709\u4e2a\u660e\u663e\u7684\u611f\u89c9\u5c31\u662f,\u6253\u5f00\u67d0\u4e2a\u7f51\u7ad9\u7684\u65f6\u5019,\u7b2c\u4e00\u6b21\u4f1a\u611f\u89c9\u6162\u548c\u5361,\u7b2c\u4e8c\u6b21\u4f1a\u5feb\u5f97\u591a;\u5f53\u7136,\u6ca1\u6709\u611f\u89c9\u5230\u7684\u8bdd,\u4e5f\u53ef\u80fd\u662f\u7f51\u901f\u6bd4\u8f83\u597d,\u611f\u89c9\u5230\u4e86\u5c31\u662f\u7f13\u5b58\u518d\u8d77\u4f5c\u7528,\u7b2c\u4e00\u6b21\u8bf7\u6c42\u7684\u65f6\u5019,\u4e0b\u8f7d\u7684\u6570\u636e\u6bd4\u8f83\u591a,\u7b2c\u4e8c\u6b21\u5f80\u540e\u6709\u7f13\u5b58(\u672c\u5730\u526f\u672c),\u5c31\u4f1a\u8282\u7ea6\u54cd\u5e94\u65f6\u95f4\u3002\u5173\u4e8e\u8fd9\u4e24\u6b21\u8bf7\u6c42\uff0c\u53d1\u751f\u7684\u8fc7\u7a0b\uff0c\u5206\u522b\u7528\u4e0b\u9762\u4e24\u5f20\u5904\u7406\u6d41\u7a0b\u7684\u8bf4\u660e\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u6d4f\u89c8\u5668\u65e0\u7f13\u5b58\u7684\u8bf7\u6c42\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/20170720214941630.png\" style=\"width: 702px;height: 561px\" \/>\n<\/p>\n<p>\n\t\u4e0b\u9762\u662f\u6d4f\u89c8\u5668\u8bfb\u53d6\u7f13\u5b58\u7684\u5904\u7406\u6d41\u7a0b\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u6d4f\u89c8\u5668\u5904\u7406\u5e26\u7f13\u5b58\u7684\u7f51\u9875\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/20170720215136677.png\" style=\"width: 821px;height: 848px\" \/>\n<\/p>\n<p>\n\t\u4e0a\u9762\u4e24\u5f20\u56fe\u53ef\u4ee5\u5f62\u8c61\u7684\u8bf4\u660e\uff0c\u4f7f\u7528\u7f13\u5b58\u548c\u4e0d\u4f7f\u7528\u7f13\u5b58\u7684\u533a\u522b\u3002\u4e0b\u9762\u6211\u4eec\u6765\u5b66\u4e60\u300a<a href=\"http:\/\/www.xttblog.com\/?p=1675\" name=\"Etag\u7f13\u5b58\u548cIf-None-Match\u7f13\u5b58\" target=\"_blank\" title=\"Etag\u7f13\u5b58\u548cIf-None-Match\u7f13\u5b58\">Etag\u7f13\u5b58\u548cIf-None-Match\u7f13\u5b58<\/a>\u300b\u3002\n<\/p>\n<p>\n\tEtag\u548cIf-None-Match,\u662f\u5728\u7f13\u5b58\u65f6\u95f4\u5df2\u7ecf\u5931\u6548\u7684\u60c5\u51b5\u4e0b,\u5373Cache-Control:mac-age = 0 \u7684\u60c5\u51b5\u4e0b,\u4f1a\u5224\u65adEtag\u548cIf-None-Match\u4e24\u8005\u662f\u5426\u76f8\u7b49,ETag\u662f\u6839\u636e\u5b9e\u4f53\u5185\u5bb9\u751f\u6210\u7684hash\u5b57\u7b26\u4e32,\u5177\u4f53\u662f\u5bf9\u6587\u4ef6\u7684\u7d22\u5f15\u8282\uff08INode\uff09\uff0c\u5927\u5c0f\uff08Size\uff09\u548c\u6700\u540e\u4fee\u6539\u65f6\u95f4\uff08MTime\uff09\u8fdb\u884cHash\u540e\u5f97\u5230\u7684,\n<\/p>\n<p>\n\t\u5982\u679cIf-None-Match\u8fd4\u56de\u7684\u548cEtag\u76f8\u7b49\u7684\u8bdd,\u5c31\u8fd4\u56de304,\u53ef\u4ee5\u4f7f\u7528\u7f13\u5b58\u7684\u8d44\u6e90,\u6587\u4ef6\u6ca1\u6709\u88ab\u6539\u52a8.\u5177\u4f53\u5982\u4e0b\uff1a<img decoding=\"async\" alt=\"Etag\u7f13\u5b58\u548cIf-None-Match\u7f13\u5b58\u7684\u4f7f\u7528\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/20170720224938661.png\" style=\"width: 954px;height: 487px\" \/><\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1675\">Etag\u7f13\u5b58\u548cIf-None-Match\u7f13\u5b58<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u5408\u7406\u7684\u4f7f\u7528\u6d4f\u89c8\u5668\u7f13\u5b58\uff0c\u5bf9\u6211\u4eec\u670d\u52a1\u5668\u4f1a\u51cf\u8f7b\u4e0d\u5c11\u538b\u529b\u3002\u4e00\u4e2aweb\u7a0b\u5e8f\u8bbe\u8ba1\u7684\u597d\u4e0d\u597d\uff0c\u7f13\u5b58\u4e5f\u662f\u5f88\u91cd\u8981\u7684\u4e00\u90e8\u5206\u3002\u672c\u6587\u4e3b\u8981 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1387,1371,1153,1389],"class_list":["post-1675","post","type-post","status-publish","format-standard","hentry","category-java","tag-cache-control","tag-etag","tag-http","tag-if-none-match"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1675"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1675\/revisions"}],"predecessor-version":[{"id":1676,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1675\/revisions\/1676"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}