{"id":6638,"date":"2016-06-17T14:14:43","date_gmt":"2016-06-17T06:14:43","guid":{"rendered":"http:\/\/mynotes.org\/tech\/?p=6638"},"modified":"2016-06-18T11:03:58","modified_gmt":"2016-06-18T03:03:58","slug":"%e9%83%a8%e8%90%bd%e6%a0%bc%e9%a1%af%e7%a4%ba%e5%a5%87%e6%80%aa%e7%9a%84%e9%a0%81%e9%9d%a2%ef%bc%9f%e5%8f%af%e8%83%bd%e6%98%af%e9%9b%bb%e4%bf%a1%e6%a5%ad%e8%80%85%e6%88%96%e7%80%8f%e8%a6%bd%e5%99%a8","status":"publish","type":"post","link":"https:\/\/mynotes.org\/tech\/2016\/06\/17\/6638.htm","title":{"rendered":"\u90e8\u843d\u683c\u986f\u793a\u5947\u602a\u7684\u9801\u9762\uff1f\u53ef\u80fd\u662f\u96fb\u4fe1\u696d\u8005\u6216\u700f\u89bd\u5668\u641e\u7684\u9b3c\uff01"},"content":{"rendered":"<p>\u6700\u8fd1\u6211\u7684\u90e8\u843d\u683c\u6709\u7bc7\u6587\u7ae0\u9ede\u95b1\u7387\u5f88\u9ad8\uff0c\u4f46\u7dca\u63a5\u800c\u4f86\u7684\u662f\u9019\u7bc7\u6587\u7ae0\u958b\u59cb\u986f\u793a\u5947\u602a\u7684\u9801\u9762\u3002\u4f8b\u5982\u6211\u660e\u660e\u7528\u684c\u4e0a\u96fb\u8166\u700f\u89bd\uff0c\u537b\u51fa\u73fe\u624b\u6a5f\u9801\u9762\uff0c\u800c\u4e14\u5207\u4e0d\u56de\u4f86\u3002\u9084\u6709\u6211\u66f4\u65b0\u6587\u7ae0\u5167\u5bb9\uff0c\u7db2\u9801\u537b\u6c92\u6709\u66f4\u65b0\u3002\u7531\u65bc\u9019\u6a23\u7684\u75c7\u72c0\u548c\u5feb\u53d6\uff08cache\uff09\u61c9\u8a72\u5f88\u6709\u95dc\u4fc2\uff0c\u4f46\u6211\u537b\u627e\u4e0d\u5230\u662f\u8ab0\u300c\u5feb\u53d6\u300d\u4e86\u6211\u7684\u7db2\u9801\u3002\u5728\u7db2\u8def\u4e0a\u627e\u4e86\u5f88\u4e45\uff0c\u767c\u73fe\u6700\u53ef\u80fd\u7684\u300c\u5147\u624b\u300d\u5c31\u662f\u96fb\u4fe1\u696d\u8005\uff0c\u4ee5\u53ca\u6211\u7684Chrome\u700f\u89bd\u5668\u3002<\/p>\n<p>\u6839\u64da\u7db2\u8def\u60c5\u5831\u986f\u793a\uff0c\u90e8\u5206\u96fb\u4fe1\u696d\u8005\u6703\u4e3b\u52d5\u5feb\u53d6\u90e8\u5206\u71b1\u9580\u5167\u5bb9\uff0c\u751a\u81f3\u6703\u4e3b\u52d5\u300c\u6700\u4f73\u5316\u300d\u7db2\u9801\u5167\u5bb9\uff0c\u5c0e\u81f4\u4f7f\u7528\u8005\u770b\u5230\u5947\u602a\u7684\u9801\u9762\u3002\u53e6\u5916\uff0cChrome\u700f\u89bd\u5668\u6709\u500bGoogle Web Light\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u964d\u4f4e\u8cc7\u6599\u50b3\u8f38\u91cf\uff0c\u4f46\u662f\u7576\u7136\u4e5f\u6703\u5c0d\u7db2\u9801\u5167\u5bb9\u4f5c\u624b\u8173\u3002\u8eab\u70ba\u7db2\u8def\u5167\u5bb9\u7684\u63d0\u4f9b\u8005\uff0c\u6211\u7576\u7136\u4e0d\u5e0c\u671b\u4f7f\u7528\u8005\u770b\u5230\u4e0d\u5408\u9069\u7684\u9801\u9762\u6392\u7248\u3002<\/p>\n<p>\u89e3\u6c7a\u65b9\u6cd5\u5982\u4e0b\uff08<a href=\"https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/internet-and-networking\/web-pages-display-incorrectly-on-mobile-devices\" target=\"_blank\">\u53c3\u8003\u7db2\u9801<\/a>\uff09\uff1a<br \/>\n1.\u5728\u7db2\u9801\u7684header\u5340\u57df\uff08\u6216\u662fwordpress\u7684header.php\uff09\u52a0\u5165<\/p>\n<pre escaped=\"true\" lang=\"php\" line=\"1\">\r\n&lt;?php\r\n    header(\"Cache-Control: no-transform\");\r\n?&gt;<\/pre>\n<p>\u6216\u662f<br \/>\n2.\u5728\u4e3b\u6a5f\u8cc7\u6599\u593e\u7684 .htaccess\u6a94\u6848\u5167\u52a0\u5165<\/p>\n<pre escaped=\"true\" lang=\"php\" line=\"1\">\r\n&lt;IfModule mod_headers.c&gt;\r\n    Header set Cache-Control \"no-transform\"\r\n&lt;\/IfModule&gt;<\/pre>\n<p>\u53ef\u4ee5\u907f\u514d\u7db2\u9801\u88ab\u5feb\u53d6\u6216\u662f\u52d5\u624b\u8173\u3002<\/p>\n<p>2016.06.18\u66f4\u65b0<br \/>\n\u6e2c\u8a66\u904e\u4e4b\u5f8c\uff0c\u9084\u662f\u6709\u9ede\u72c0\u6cc1\uff0c\u6211\u53c8\u505a\u4e86\u4ee5\u4e0b\u7684\u8655\u7f6e\uff1a<br \/>\n1.\u6e05\u9664\u700f\u89bd\u5668\u672c\u8eab\u7684\u5feb\u53d6<br \/>\n2.\u628aJetpack\u7684\u529f\u80fd\u90fd\u95dc\u9589\uff08\u5982\u679c\u6709\u5b89\u88ddJetpack\u7684\u8a71\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u6211\u7684\u90e8\u843d\u683c\u6709\u7bc7\u6587\u7ae0\u9ede\u95b1\u7387\u5f88\u9ad8\uff0c\u4f46\u7dca\u63a5\u800c\u4f86\u7684\u662f\u9019\u7bc7\u6587\u7ae0\u958b\u59cb\u986f\u793a\u5947\u602a\u7684\u9801\u9762\u3002\u4f8b\u5982\u6211\u660e\u660e\u7528\u684c\u4e0a\u96fb\u8166\u700f\u89bd\uff0c\u537b\u51fa\u73fe\u624b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[129,43,127,53,42],"tags":[15,96],"class_list":["post-6638","post","type-post","status-publish","format-standard","hentry","category-php-program","category-wordpress-website-built","category-program","category-programing-wordpress-website-built","category-website-built","tag-php","tag-wordpress"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/posts\/6638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/comments?post=6638"}],"version-history":[{"count":4,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/posts\/6638\/revisions"}],"predecessor-version":[{"id":6644,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/posts\/6638\/revisions\/6644"}],"wp:attachment":[{"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/media?parent=6638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/categories?post=6638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/tags?post=6638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}