{"id":9281,"date":"2017-10-10T06:00:06","date_gmt":"2017-10-09T21:00:06","guid":{"rendered":"https:\/\/www.suzukikenichi.com\/blog\/?p=9281"},"modified":"2017-10-07T09:36:38","modified_gmt":"2017-10-07T00:36:38","slug":"using-noindex-when-pwa-inappropriately-returns-200-instead-of-404","status":"publish","type":"post","link":"https:\/\/www.suzukikenichi.com\/blog\/using-noindex-when-pwa-inappropriately-returns-200-instead-of-404\/","title":{"rendered":"PWA\u30b5\u30a4\u30c8\u3067\u3001404\u30a8\u30e9\u30fc\u3092\u8fd4\u3059\u3079\u304d\u306a\u306e\u306b200\u3092\u8fd4\u3057\u3066\u3057\u307e\u3046 &lt;= noindex\u30bf\u30b0\u3067\u30bd\u30d5\u30c8404\u6271\u3044\u3055\u305b\u308b"},"content":{"rendered":"<p class=\"p20-b al-r small\">[\u30ec\u30d9\u30eb: \u4e0a\u7d1a]<\/p>\n<p class=\"p60-b\">PWA\uff08\u30d7\u30ed\u30b0\u30ec\u30c3\u30b7\u30d6 \u30a6\u30a7\u30d6 \u30a2\u30d7\u30ea\uff09\u306e\u30b5\u30a4\u30c8\u306b\u304a\u3044\u3066\u3001HTTP \u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3068\u3057\u3066 404 \u30a8\u30e9\u30fc\u3092\u8fd4\u3059\u3079\u304d\u306a\u306e\u306b 200 \u3092\u8fd4\u3057\u3066\u3057\u307e\u3046\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\u3053\u3046\u3057\u305f\u72b6\u6cc1\u3067\u306f\u3001noindex robots meta \u30bf\u30b0\u3092\u8a2d\u7f6e\u3057 Google \u306b\u30bd\u30d5\u30c8 404 \u6271\u3044\u3055\u305b\u308b\u3068\u3044\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<h2>\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u306a\u3044\u306e\u306b 200 \u3092\u8fd4\u3059 PWA<\/h2>\n<p>\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u201c\u67a0\u201d\u3067\u3042\u308b App Shell\uff08\u30a2\u30d7\u30ea\u30b7\u30a7\u30eb\uff09\u3068\u3001\u5b9f\u8cea\u7684\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5225\u3005\u306b\u8aad\u307f\u8fbc\u3080\u69cb\u6210\u3067 PWA \u306f\u30da\u30fc\u30b8\u3092\u8868\u793a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5b58\u5728\u3057\u306a\u3044 URL \u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u306b\u3082\u95a2\u308f\u3089\u305a\u3001\u30a2\u30d7\u30ea\u30b7\u30a7\u30eb\u3060\u3051\u306f\u6b63\u5e38\u306b\u30ed\u30fc\u30c9\u3055\u308c\u7d50\u679c\u3068\u3057\u3066 200 \u3092\u8fd4\u3059\u72b6\u6cc1\u304c\u30b5\u30a4\u30c8\u306b\u3088\u3063\u3066\u306f\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u306f\u3001PWA \u3067 App Shell \u3092\u69cb\u6210\u3057\u5916\u90e8\u30b5\u30a4\u30c8\u304b\u3089 (AMP\u306e\uff09\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8aad\u307f\u8fbc\u3080 <a href=\"https:\/\/www.suzukikenichi.com\/blog\/shadow-reader-is-amp-in-pwa\/\">PWA+AMP\u306e\u30b5\u30a4\u30c8<\/a>\u3067\u3001\u5b58\u5728\u3057\u306a\u3044 URL \u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3068\u304d\u306e\u69d8\u5b50\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" itemprop=\"image\" src=\"https:\/\/www.suzukikenichi.com\/images\/pwa-404.png\" alt=\"App Shell \u304c 200 \u3092\u8fd4\u3059 PWA\" width=\"909\" height=\"744\" \/><\/p>\n<p><code>https:\/\/amp.cards\/aaa<\/code> \u3068\u3044\u3046\u5b58\u5728\u3057\u306a\u3044 URL \u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u306e\u3067\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u53d6\u5f97\u3067\u304d\u305a\u30da\u30fc\u30b8\u306f\u30d6\u30e9\u30f3\u30af\u3067\u3059\u3002<br \/>\u3068\u3053\u308d\u304c App Shell \u3060\u3051\u306f\u8868\u793a\u3055\u308c\u308b\u305f\u3081\u3001200 \u3092\u8fd4\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>PWA \u306e <a href=\"https:\/\/www.suzukikenichi.com\/blog\/twitter-introduces-twitter-lite-as-pwa\/\">Twitter Lite<\/a> \u3082\u5b58\u5728\u3057\u306a\u3044 URL \u306b\u5bfe\u3057\u3066 200 \u304c\u8fd4\u3063\u3066\u3044\u307e\u3059\uff08Twitter \u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u63b2\u8f09\u3059\u308b\u30da\u30fc\u30b8\u306b JS \u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\uff09\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" itemprop=\"image\" src=\"https:\/\/www.suzukikenichi.com\/images\/twiter-lite-404.png\" alt=\"Twitter Lite \u306e404\" width=\"966\" height=\"761\" \/><\/p>\n<p>200 \u3092\u8fd4\u3059\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306b\u3068\u3063\u3066\u306f\u6b63\u5e38\u306a\u30da\u30fc\u30b8\u3067\u3059\u3002<br \/>\u3057\u304b\u3057\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3059\u3079\u304d\u5b9f\u8cea\u7684\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p class=\"p40-b\">404 \u3092\u8fd4\u3057\u305f\u3044\u306e\u306b\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u305a\u3001\u4e0d\u9069\u5207\u306b 200 \u3092\u8fd4\u3057\u3066\u3057\u307e\u3046\u3053\u3093\u306a\u72b6\u6cc1\u3067\u306f\u3069\u3046\u3059\u3079\u304d\u306a\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<h2>noindex \u30bf\u30b0\u3067\u30bd\u30d5\u30c8 404 \u6271\u3044<\/h2>\n<p>Google \u306e John Mueller\uff08\u30b8\u30e7\u30f3\u30fb\u30df\u30e5\u30fc\u30e9\u30fc\uff09\u6c0f\u306f\u3001\u305d\u3046\u3057\u305f\u30da\u30fc\u30b8\u306b\u306f <strong>noindex robots meta \u30bf\u30b0\u3092\u8a2d\u7f6e\u3057\u3066\u304a\u3051\u3070\u3001Google \u306f<a href=\"https:\/\/support.google.com\/webmasters\/answer\/181708?hl=ja\">\u30bd\u30d5\u30c8 404<\/a> \u6271\u3044\u3059\u308b<\/strong>\u3060\u308d\u3046\u3068\u30a2\u30c9\u30d0\u30a4\u30b9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"ja\">\n<p lang=\"en\" dir=\"ltr\">404 is usually not that bad, you can just add a noindex robots meta tag and we&#39;ll see it as a soft-404; other errors (eg, 5xx) are harder.<\/p>\n<p>&mdash; John \u2606.o(\u2267\u25bd\u2266)o.\u2606 (@JohnMu) <a href=\"https:\/\/twitter.com\/JohnMu\/status\/915487756809318400?ref_src=twsrc%5Etfw\">2017\u5e7410\u67084\u65e5<\/a><\/p><\/blockquote>\n<p class=\"p30-t p60-b\">\nApp Shell \u3060\u3051\u3060\u3068\u5b9f\u8cea\u7684\u306a\u4e2d\u8eab\u304c\u306a\u3044\u30da\u30fc\u30b8\u306a\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u3067\u3082\u6700\u7d42\u7684\u306b\u306f\u30bd\u30d5\u30c8 404 \u3068\u3057\u3066\u51e6\u7406\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<br \/>\u3057\u304b\u3057\u3001noindex \u3092\u4ed8\u3051\u308b\u3053\u3068\u3067 Google \u306b\u660e\u793a\u7684\u306b\u30b7\u30b0\u30ca\u30eb\u3092\u9001\u308a\u3001\u691c\u7d22\u7d50\u679c\u306b\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u5b9f\u306b\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30af\u30cb\u30ab\u30eb\u306a\u5185\u5bb9\u306e\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u95a2\u4fc2\u3059\u308b\u4eba\u306f\u5c11\u306a\u3044\u3060\u308d\u3046\u3068\u306f\u60f3\u5b9a\u3057\u307e\u3059\u304c\u3001PWA \u30b5\u30a4\u30c8\u3092\u904b\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u5b58\u5728\u3057\u306a\u3044\u30da\u30fc\u30b8\u304c\u3069\u3093\u306a HTTP \u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3092\u8fd4\u3057\u3066\u3044\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\u3082\u3057 200 \u304c\u8fd4\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3042\u308c\u3070\u3001\u7121\u610f\u5473\u306a URL \u304c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u308c\u306a\u3044\u3088\u3046\u306b noindex \u30bf\u30b0\u3092\u633f\u5165\u3059\u308b\u3088\u3046\u306a\u4ed5\u7d44\u307f\u3092\u88c5\u5099\u3057\u3066\u304a\u304f\u3068\u3088\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PWA\u306e\u30b5\u30a4\u30c8\u306b\u304a\u3044\u3066\u3001HTTP \u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3068\u3057\u3066 404 \u30a8\u30e9\u30fc\u3092\u8fd4\u3059\u3079\u304d\u306a\u306e\u306b 200 \u3092\u8fd4\u3057\u3066\u3057\u307e\u3046\u72b6\u6cc1\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306f\u3001noindex robots meta \u30bf\u30b0\u3092\u8a2d\u7f6e\u3057 Google \u306b\u30bd\u30d5\u30c8 404 \u6271\u3044\u3055\u305b\u308b\u3068\u3044\u3044\u3088\u3046\u3060\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1179],"tags":[227,793,1257],"class_list":["post-9281","post","type-post","status-publish","format-standard","category-mobile-seo","tag-noindex","tag-soft-404","tag-progressive-web-apps"],"_links":{"self":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/9281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/comments?post=9281"}],"version-history":[{"count":0,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/9281\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media?parent=9281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/categories?post=9281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/tags?post=9281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}