{"id":1677,"date":"2017-07-21T11:09:57","date_gmt":"2017-07-21T03:09:57","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1677"},"modified":"2017-07-21T11:09:57","modified_gmt":"2017-07-21T03:09:57","slug":"last-modified%e7%bc%93%e5%ad%98%e5%92%8cif-modified-since%e7%bc%93%e5%ad%98","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1677","title":{"rendered":"Last-Modified\u7f13\u5b58\u548cIf-Modified-Since\u7f13\u5b58"},"content":{"rendered":"<p>\n\t\u5728\u591a\u8bf4\u4e00\u4e0b,\u8fd9\u4e2a\u4e5f\u662f\u5728\u7f13\u5b58\u65f6\u95f4\u5df2\u7ecf\u5931\u6548,\u5373Cache-Control:mac-age = 0 \u7684\u60c5\u51b5\u4e0b,\u800c\u4e14\u4e0a\u9762\u7684Etag\u548cIf-None-Match\u4e0d\u76f8\u7b49\u7684\u60c5\u51b5\u4e0b;\n<\/p>\n<p>\n\tLast-Modified\u6307\u7684\u662f\u6587\u4ef6\u4e0a\u4e00\u6b21\u88ab\u4fee\u6539\u7684\u65f6\u95f4(\u53ef\u4ee5\u7406\u89e3\u4e3a\u670d\u52a1\u5668\u7aef\u7684),, \u4f1a\u5e26\u7740 If-Modified-Since(\u672c\u5730\u7684)\u8fd4\u56de\u7684\u65f6\u95f4,,\u672c\u5730\u7684\u65f6\u95f4\u5927\u4e8e\u7b49\u4e8e\u670d\u52a1\u5668\u7aef\u7684\u65f6\u95f4\u7684\u82b1,\u8bf4\u660e\u8d44\u6e90\u6ca1\u6709\u88ab\u6539\u52a8\u8fc7\u63a5\u7740\u7528\u7f13\u5b58\u7684,\u5426\u5219\u5c31\u8981\u66f4\u65b0,\u4ece\u65b0\u53d1\u9001web\u8bf7\u6c42\u4e86,\u5982\u679c\u611f\u89c9\u62d7\u53e3\u7684\u8bdd,\u8d34\u4e00\u4e0b\u53c2\u8003\u7684\u539f\u8bdd\u3002\n<\/p>\n<p>\n\t\u5f53\u8d44\u6e90\u8fc7\u671f\u65f6\uff08\u4e5f\u5c31\u662f Cache-Control:max-age=0\uff0c\uff09\uff0c\u53d1\u73b0\u8d44\u6e90\u5177\u6709Last-Modified\u58f0\u660e\uff0c\u5219\u518d\u6b21\u5411web\u670d\u52a1\u5668\u8bf7\u6c42\u65f6\u5e26\u4e0a\u5934 If-Modified-Since\uff0c\u8868\u793a\u8bf7\u6c42\u65f6\u95f4\u3002web\u670d\u52a1\u5668\u6536\u5230\u8bf7\u6c42\u540e\u53d1\u73b0\u6709\u5934If-Modified-Since \u5219\u4e0e\u88ab\u8bf7\u6c42\u8d44\u6e90\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u8fdb\u884c\u6bd4\u5bf9\u3002\u82e5Last-Modified\u7684\u65f6\u95f4\u8f83\u65b0\uff0c\u8bf4\u660e\u6700\u540e\u4fee\u6539\u65f6\u95f4\u8f83\u65b0\uff0c\u8bf4\u660e\u8d44\u6e90\u53c8\u88ab\u6539\u52a8\u8fc7\uff0c\u5219\u54cd\u5e94\u6574\u7684\u8d44\u6e90\u91cd\u65b0\u4ece\u670d\u52a1\u5668\u8bfb\u53d6\uff0c\u800c\u4e0d\u662f\u8bfb\u53d6\u7f13\u5b58\uff0c\u8fd4\u56de200\u72b6\u6001\u5417\uff1b\u82e5If-Modified-Since\u7684\u65f6\u95f4\u6bd4Last-Modified\u65b0\u6216\u8005\u76f8\u7b49\uff0c\u8bf4\u660e\u670d\u52a1\u5668\u7684\u5185\u5bb9\u6ca1\u6709\u66f4\u65b0\uff0c\u76f4\u63a5\u8bfb\u53d6\u7f13\u5b58\u5373\u53ef\uff0c\u8fd4\u56de304\u72b6\u6001\u7801\uff0c\u544a\u77e5\u6d4f\u89c8\u5668\u7ee7\u7eed\u4f7f\u7528\u6240\u4fdd\u5b58\u7684cache\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Last-Modified\u7f13\u5b58\u548cIf-Modified-Since\u7f13\u5b58\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/20170720231844099.png\" style=\"width: 903px;height: 433px\" \/>\n<\/p>\n<p>\n\t\u53e6\u5916\u9700\u8981\u8bf4\u660e\u7684\u662f: cache-control &nbsp; &nbsp; &nbsp;.Etag\u548cIf-None-Match &nbsp; Etag\u548cIf-None-Match\u4e09\u8005\u7684\u6743\u91cd\u662f\u4ece\u5de6\u5230\u53f3\u8d8a\u6765\u8d8a\u5c0f\u7684;\n<\/p>\n<p>\n\t\u8fd8\u6709\u4e00\u70b9\u9700\u8981\u8bf4\u660e\u7684\u662f,\u6211\u4eec\u8bf4\u7684\u7f13\u5b58~\u57fa\u672c\u4e0a\u90fd\u662fGET\u65b9\u5f0f\u7684,\u50cfPOST\u4e4b\u7c7b\u7684\u901a\u5e38\u60c5\u51b5\u4e0b\u662f\u4e0d\u4f1a\u8fdb\u884c\u7f13\u5b58\u7684;\n<\/p>\n<p>\n\t\u8bf4\u4e86\u8fd9\u4e48\u591a,\u7f13\u5b58\u662f\u597d\u7684,\u53ef\u4ee5\u8282\u7ea6\u8d44\u6e90,\u51cf\u5c11\u670d\u52a1\u5668\u7684\u538b\u529b,\u4f46\u662f,\u8bbe\u7f6e\u592a\u957f\u7684\u7f13\u5b58\u65f6\u95f4\u7684\u8bdd,\u53c8\u4e0d\u80fd\u53ca\u65f6\u7684\u66f4\u65b0\u8d44\u6e90,\u5177\u4f53\u5982\u4f55\u53d6\u820d\u628a\u63e1,\u8fd8\u8981\u89c6\u5177\u4f53\u60c5\u51b5\u518d\u8bf4.<\/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=1677\">Last-Modified\u7f13\u5b58\u548cIf-Modified-Since\u7f13\u5b58<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u5728\u591a\u8bf4\u4e00\u4e0b,\u8fd9\u4e2a\u4e5f\u662f\u5728\u7f13\u5b58\u65f6\u95f4\u5df2\u7ecf\u5931\u6548,\u5373Cache-Control:mac-age = 0 \u7684\u60c5\u51b5\u4e0b,\u800c\u4e14\u4e0a [&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":[1371,1153,1390,1389,1370],"class_list":["post-1677","post","type-post","status-publish","format-standard","hentry","category-java","tag-etag","tag-http","tag-if-modified-since","tag-if-none-match","tag-last-modified"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1677","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=1677"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1677\/revisions"}],"predecessor-version":[{"id":1678,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1677\/revisions\/1678"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}