{"id":17156,"date":"2018-08-09T14:01:18","date_gmt":"2018-08-09T05:01:18","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=17156"},"modified":"2018-08-14T16:51:25","modified_gmt":"2018-08-14T07:51:25","slug":"%e7%be%8e%e5%ae%b9%e3%83%a1%e3%83%87%e3%82%a3%e3%82%a2-arine-%e3%81%ae%e8%a8%98%e4%ba%8b%e3%82%92-amazon-cloudfront-%e3%82%92%e9%80%9a%e3%81%97%e3%81%a6%e9%85%8d%e4%bf%a1%e3%81%99%e3%82%8b%e3%82%88","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2018\/08\/17156\/","title":{"rendered":"\u7f8e\u5bb9\u30e1\u30c7\u30a3\u30a2 ARINE \u306e\u8a18\u4e8b\u3092 Amazon CloudFront \u3092\u901a\u3057\u3066\u914d\u4fe1\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u8a71"},"content":{"rendered":"<p>\u30a2\u30ea\u30cd\u30c1\u30fc\u30e0\u306e\u5e73\u7530\u3067\u3059\u3002<a href=\"https:\/\/arine.jp\/\">\u6bce\u65e5\u306b\u61a7\u308c\u3092\u3001\u306a\u7f8e\u5bb9\u30e1\u30c7\u30a3\u30a2ARINE<\/a>\u3067\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u958b\u767a\u3092\u3057\u305f\u308a\u30a4\u30f3\u30d5\u30e9\u56de\u308a\u3092\u898b\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6700\u8fd1ARINE(<a href=\"https:\/\/arine.jp\">https:\/\/arine.jp<\/a>)\u306fAmazon CloudFront\u3092\u901a\u3057\u3066\u30da\u30fc\u30b8\u3092\u914d\u4fe1\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u4e3b\u306a\u76ee\u7684\u306f\u307b\u307c\u9759\u7684\u3067\u3001\u304b\u3064ARINE\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306e\u4e2d\u5fc3\u3067\u3042\u308b\u8a18\u4e8b\u30da\u30fc\u30b8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3053\u3068\u3067\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u901f\u304f\u3057\u3001\u304b\u3064\u30a2\u30af\u30bb\u30b9\u304c\u5897\u52a0\u3057\u305f\u969b\u306e\u30aa\u30ea\u30b8\u30f3\u306e\u8ca0\u62c5\u3092\u8efd\u304f\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306fCloudFront\u3092\u5165\u308c\u308b\u307e\u3067\u306b\u3084\u3063\u305f\u3053\u3068\u3001\u5165\u308c\u3066\u307f\u3066\u306e\u52b9\u679c\u3001\u305d\u3057\u3066\u3084\u3063\u3066\u3057\u307e\u3063\u305f\u5931\u6557\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u60f3\u5b9a\u3057\u3066\u3044\u308b\u8aad\u8005\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3068\u3001\u3053\u306e\u8a18\u4e8b\u306f\u521d\u3081\u3066CDN\u306e\u8a2d\u5b9a\u3092\u3057\u305f\u81ea\u5206\u304c\u632f\u308a\u8fd4\u3063\u3066\u66f8\u3044\u3066\u307f\u3066\u3044\u308b\u5185\u5bb9\u3067\u3059\u306e\u3067<\/p>\n<ul>\n<li>\u666e\u6bb5\u306f\u4e3b\u306b\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30a2\u30d7\u30ea\u3092\u66f8\u3044\u3066\u3044\u308b\u3051\u3069\u3001\u305f\u307e\u306b\u30a4\u30f3\u30d5\u30e9\u3082\u898b\u3066\u3044\u3066\u3001<\/li>\n<li>CDN\u306e\u8a2d\u5b9a\u306f\u3084\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u3051\u3069\u3084\u308d\u3046\u3068\u3057\u3066\u3044\u308b<\/li>\n<li>\u3082\u3057\u304f\u306f\u3084\u3063\u305f\u3070\u304b\u308a<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u65b9\u306b\u306f\u304a\u5f79\u306b\u7acb\u3066\u308b\u5185\u5bb9\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>\u3084\u3063\u305f\u3053\u3068<\/h2>\n<p>\u4eca\u56de\u306e\u4e3b\u306a\u76ee\u7684\u306f\u524d\u8ff0\u306e\u901a\u308a\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u6539\u5584\u3068\u30aa\u30ea\u30b8\u30f3\u306e\u8ca0\u8377\u5bfe\u7b56\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u53ef\u80fd\u306a\u30da\u30fc\u30b8\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u306b\u307e\u305aCloudFront\u306e\u8a2d\u5b9a\u4ee5\u524d\u306b\u3084\u3063\u305f\u3053\u3068\u3068\u3057\u3066\u306f\u3001<\/p>\n<ul>\n<li>\u30ad\u30e3\u30c3\u30b7\u30e5\u30ad\u30fc\u306e\u6d17\u3044\u51fa\u3057<\/li>\n<li>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u6642\u70b9\u3067\u306e\u6761\u4ef6\u5206\u5c90\u3092\u30ed\u30fc\u30c9\u5f8c\u306eJavaScript\u3067\u306e\u51e6\u7406\u306b\u5909\u66f4<\/li>\n<li>\u7121\u99c4\u306aSet-Cookie\u306e\u524a\u9664<\/li>\n<li>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u30a2\u30af\u30bb\u30b9\u3054\u3068\u306b\u5b9f\u884c\u3057\u3066\u3044\u308b\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u3053\u3068\u3068\u306f\u95a2\u4fc2\u306e\u306a\u3044\u526f\u4f5c\u7528\u7684\u306a\u51e6\u7406\u306eAPI\u5316<\/li>\n<\/ul>\n<p>\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30ad\u30fc\u3092\u8003\u3048\u308b<\/h3>\n<p>CDN\u3067\u30da\u30fc\u30b8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3046\u3048\u3067\u91cd\u8981\u306a\u3053\u3068\u306b\u3064\u3044\u3066\u3001\u5f0a\u793e\u30a4\u30f3\u30d5\u30e9\u6240\u5c5e\u306e\u3044\u308f\u306a\u3061\u3083\u3093\u3055\u3093\u306e\u8a18\u4e8b\u3001\u00a0<a href=\"http:\/\/blog.xcir.net\/?p=2575\">CDN\u3068\u306e\u4ed8\u304d\u5408\u3044\u65b9<\/a>\u3092\u4f55\u5ea6\u3082\u8aad\u307f\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u3061\u3089\u306e\u8a18\u4e8b\u304b\u3089\u91cd\u8981\u306a\u3053\u3068\u3092\u5f15\u7528\u3055\u305b\u3066\u3044\u305f\u3060\u304f\u3068\u3001<\/p>\n<blockquote><p>\u4e00\u756a\u91cd\u8981\u306a\u3053\u3068\u306f\u3001\u4e00\u3064\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u8907\u6570\u306e\u610f\u5473\u3092\u6301\u305f\u305b\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p><\/blockquote>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u3042\u308b\u30ad\u30fc\u306b\u5bfe\u5fdc\u4ed8\u3051\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u305a1\u3064\u306e\u610f\u5473\u3092\u6301\u3064\u3088\u3046\u306b\u3001\u30da\u30fc\u30b8\u306e\u751f\u6210\u306b\u95a2\u4fc2\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6ce8\u610f\u6df1\u304f\u6d17\u3044\u51fa\u3057\u3066\u305d\u308c\u3089\u304c\u5168\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30ad\u30fc\u306b\u542b\u307e\u308c\u308b\u3088\u3046\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u30ad\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>ARINE\u306e\u8a18\u4e8b\u30da\u30fc\u30b8\u306e\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8981\u7d20\u304c\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u5bfe\u51e6\u3057\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>UserAgent\n<ul>\n<li>PC\u5411\u3051\u304b\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u5411\u3051\u30da\u30fc\u30b8\u306e\u3069\u3061\u3089\u3092\u8fd4\u3059\u304b\u306e\u5224\u5225<\/li>\n<li>iOS\u304bAndroid\u304b\u306b\u5fdc\u3058\u3066\u3001\u30a2\u30d7\u30ea\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092\u4fc3\u3059\u30d0\u30ca\u30fc\u306e\u51fa\u3057\u5206\u3051<\/li>\n<\/ul>\n<\/li>\n<li>\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\n<ul>\n<li>\u30e6\u30fc\u30b6\u30fc\u306e\u30a2\u30a4\u30b3\u30f3\u3084\u8a18\u4e8b\u306e\u3044\u3044\u306d\u306e\u72b6\u614b\u3092\u51fa\u3057\u305f\u308a\u3001\u901a\u77e5\u3092\u51fa\u3057\u305f\u308a<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>UserAgent\u306b\u3088\u308b\u51fa\u3057\u5206\u3051\u306f\u3001ARINE\u3067\u306f<a href=\"https:\/\/github.com\/woothee\/woothee\">woothee<\/a>\u00a0(\u3068<a href=\"https:\/\/github.com\/k0kubun\/rack-user_agent\">rack-user_agent<\/a>)\u3092\u4f7f\u3063\u3066UserAgent\u304b\u3089\u30c7\u30d0\u30a4\u30b9\u30bf\u30a4\u30d7(variant)\u3092\u5224\u5b9a\u3057\u3001variant\u304cpc\u304bsmartphone\u304b\u306b\u3088\u3063\u3066\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3044\u5206\u3051\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>CloudFront\u3067\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc\u3092\u30aa\u30ea\u30b8\u30f3\u306b\u8ee2\u9001\u3059\u308b\u5834\u5408\u306f\u305d\u308c\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30ad\u30fc\u306b\u542b\u307e\u308c\u307e\u3059\u3002\u3064\u307e\u308aUserAgent\u3092\u8ee2\u9001\u3059\u308b\u3068UserAgent\u3054\u3068\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u52b9\u7387\u304c\u975e\u5e38\u306b\u60aa\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001CloudFront\u3067\u306f\u3056\u3063\u304f\u308a\u3068UserAgent\u306e\u7a2e\u985e\u3092\u5224\u5b9a\u3059\u308b\u305f\u3081\u306e\u30d8\u30c3\u30c0\u30fc\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\uff08\u53c2\u8003\uff1a<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AmazonCloudFront\/latest\/DeveloperGuide\/header-caching.html#header-caching-web-device\">\u30c7\u30d0\u30a4\u30b9\u30bf\u30a4\u30d7\u306b\u57fa\u3065\u3044\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3088\u3046\u306b CloudFront \u3092\u8a2d\u5b9a\u3059\u308b<\/a>\uff09woothee\u3067\u5224\u5b9a\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3092\u3001CloudFront\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306e\u5834\u5408\u306f\u305d\u308c\u3089\u306e\u30d8\u30c3\u30c0\u30fc\u3092\u898b\u3066\u5224\u65ad\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u30d0\u30ca\u30fc\u306b\u3064\u3044\u3066\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5224\u5b9a\u3057\u3066\u51fa\u3057\u308f\u3051\u308b\u306e\u3092\u3084\u3081\u3001JavaScript\u3067UserAgent\u3092\u53d6\u5f97\u3057\u3066\u753b\u50cf\u306a\u3069\u3092\u5dee\u3057\u66ff\u3048\u308b\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5148\u7a0b\u7d39\u4ecb\u3057\u305f\u8a18\u4e8b\u306b\u3082\u66f8\u3044\u3066\u3042\u308b\u901a\u308a\u3001\u30af\u30c3\u30ad\u30fc\u306e\u53d6\u6271\u306b\u3082\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u306f\u3001Set-Cookie\u3092\u767a\u884c\u3059\u308b\u30da\u30fc\u30b8\u306f\u539f\u5247\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u3044\u307e\u305b\u3093\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089arine.jp\u30c9\u30e1\u30a4\u30f3\u5411\u3051\u306e\u30af\u30c3\u30ad\u30fc\u304c\u9001\u3089\u308c\u3066\u304d\u3066\u3044\u308b\u5834\u5408\u5168\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30ad\u30fc\u306b\u542b\u3093\u3067\u3044\u307e\u3059\u3002(CloudFront\u306e\u8a2d\u5b9a\u3067\u30aa\u30ea\u30b8\u30f3\u306b\u8ee2\u9001\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u308b) Set-Cookie \u3092\u8aa4\u3063\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u542b\u3093\u3067\u3057\u307e\u3044\u30af\u30c3\u30ad\u30fc\u304c\u5171\u6709\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u308a\u3001\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u5411\u3051\u306e\u30da\u30fc\u30b8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u914d\u4fe1\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u3092\u9632\u3050\u305f\u3081\u3067\u3059\u3002\uff08\u3053\u306e\u70b9\u306b\u3064\u3044\u3066\u306f\u5148\u7a0b\u306e\u8a18\u4e8b\u306b\u3001\u8457\u8005\u306e\u3044\u308f\u306a\u3061\u3083\u3093\u3055\u3093\u306e\u30dd\u30ea\u30b7\u30fc\u304c\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u306e\u3067\u305d\u3061\u3089\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002\uff09<\/p>\n<p>\u3064\u307e\u308a\u4eca\u56de\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u5834\u5408\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u5b9f\u8cea\u307b\u307c\u8ae6\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>ARINE\u306e\u5834\u5408\u306f99%\u4ee5\u4e0a\u306e\u30a2\u30af\u30bb\u30b9\u306f\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u306a\u3044\u72b6\u614b\u3067\u306e\u30a2\u30af\u30bb\u30b9\u3067\u3059\u3002\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u306a\u3044\u30b1\u30fc\u30b9\u3060\u3051\u3067\u3082\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u304d\u308c\u3070\u5341\u5206\u306a\u52b9\u679c\u304c\u5f97\u3089\u308c\u308b\u305f\u3081\u3001\u4eca\u56de\u306f\u898b\u9001\u308a\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066ARINE\u3092\u898b\u306b\u304d\u3066\u304f\u3060\u3055\u3063\u3066\u3044\u308b\u8cb4\u91cd\u306a\u30e6\u30fc\u30b6\u30fc\u304c\u3088\u308a\u826f\u3044\u4f53\u9a13\u3092\u5f97\u3089\u308c\u306a\u3044\u3053\u3068\u306f\u826f\u304f\u306a\u3044\u306e\u3067\u3001\u4eca\u5f8c\u306f\u53d6\u308a\u7d44\u3093\u3067\u3044\u3053\u3046\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u7121\u99c4\u306aSet-Cookie\u306e\u524a\u9664<\/h3>\n<p>\u5143\u3005\u306eARINE\u306eRails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u305d\u308c\u3092\u4f7f\u308f\u306a\u3044\u30da\u30fc\u30b8\u3067\u3082\u3001\u5fc5\u305acsrf_meta_tags\u3092\u547c\u3073\u51fa\u3057\u3001CSRF\u5bfe\u7b56\u306eauthenticity token\u3092\u767a\u884c\u3057\u3066\u3044\u307e\u3057\u305f\u3002csrf_meta_tags\u306f\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u691c\u8a3c\u3059\u308b\u306e\u3067\u3001\u5168\u3066\u306e\u30da\u30fc\u30b8\u3067Set-Cookie\u304c\u8fd4\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>CDN\u3067\u4f59\u8a08\u306aSet-Cookie\u3092\u524a\u9664\u3059\u308b\u3068\u3044\u3046\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u5834\u5408\u306f\u305d\u3082\u305d\u3082\u30a2\u30d7\u30ea\u5074\u3067\u4e0d\u5fc5\u8981\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u767a\u884c\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u5fc5\u8981\u306a\u5834\u5408\u306e\u307fcsrf_meta_tags\u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u3057\u3066\u4f59\u8a08\u306aSet-Cookie\u3092\u8fd4\u3055\u306a\u3044\u3088\u3046\u306b\u30a2\u30d7\u30ea\u3092\u6539\u4fee\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u51e6\u7406\u306e\u5206\u96e2<\/h3>\n<p>\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u3066\u3082\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u306f\u30a2\u30af\u30bb\u30b9\u304c\u6765\u306a\u304f\u306a\u308b\u3053\u3068\u306b\u3082\u5099\u3048\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>ARINE\u3067\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u8a73\u7d30\u306a\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u6b8b\u3057\u305f\u308a\u3001\u8a18\u4e8b\u306ePV\u6570\u3092\u8a08\u6e2c\u3057\u305f\u308a\u3057\u3066\u3044\u307e\u3057\u305f\u3002(\u203bRails\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u3067\u4f7f\u3046\u7528\u306ePV\u30ab\u30a6\u30f3\u30bf\u30fc\u3067\u3001\u5206\u6790\u3084\u5b9f\u7e3e\u5024\u306e\u96c6\u8a08\u3067\u306fGoogle Analytics\u306a\u3069\u3067\u8a08\u6e2c\u3057\u3066\u3044\u308bPV\u3092\u898b\u3066\u3044\u307e\u3059\u3002)<\/p>\n<p>CloudFront\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u30a2\u30af\u30bb\u30b9\u304c\u3042\u308a\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u3066\u3082\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306f\u52d5\u304b\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u305d\u3046\u3059\u308b\u3068\u30ed\u30b0\u3084\u8a08\u6e2c\u4e0a\u56f0\u308b\u306e\u3067\u3001\u30ed\u30b0\u3084PV\u306e\u8a08\u6e2c\u3092\u884c\u3046\u305f\u3081\u306eAPI\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u7528\u610f\u3057\u3066\u3001\u30da\u30fc\u30b8\u30ed\u30fc\u30c9\u5f8c\u306b\u53e9\u304f\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u305f\u30da\u30fc\u30b8\u3067\u3082\u4ee5\u524d\u3068\u540c\u69d8\u306b\u30ed\u30b0\u304c\u53d6\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067\u30a2\u30d7\u30ea\u5074(\u3068\u3044\u3046\u304bCloudFront\u306e\u8a2d\u5b9a\u4ee5\u5916)\u3067\u5bfe\u5fdc\u3059\u3079\u304d\u3053\u3068\u306f\u5168\u90e8\u3084\u3063\u305f\u3001\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u306b\u306f\u91cd\u8981\u306a\u8a2d\u5b9a\u304c\u6f0f\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u4f55\u304b\u306f\u5931\u6557\u306e\u7b87\u6240\u3067\u5f8c\u8ff0\u3057\u307e\u3059\u2026\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u305d\u3057\u3066CloudFront\u3092\u5b9f\u969b\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u30d1\u30b9\u3054\u3068\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u8a2d\u5b9a\uff08Behavior\uff09\u306e\u8a71\u3057\u304b\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u3053\u3067\u306e\u30dd\u30a4\u30f3\u30c8\u306f<\/p>\n<ul>\n<li>\u7d76\u5bfe\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3057\u306a\u3044\u8a2d\u5b9a\u3092\u9593\u9055\u3044\u306a\u304f\u78ba\u8a8d\u3059\u308b<\/li>\n<li>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30ad\u30fc\u3092\u9069\u5207\u306b\u8a2d\u5b9a\u3059\u308b<\/li>\n<li>\u30a8\u30e9\u30fc\u306e\u5834\u5408\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3082\u9069\u5207\u306b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u3068\u3053\u308d\u3067\u3057\u305f\u3002<\/p>\n<h3>\u7d76\u5bfe\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u306a\u3044<\/h3>\n<p>\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u76ee\u7684\u3068\u8a00\u3063\u3066\u3044\u305f\u5272\u306b\u306f\u3001\u4eca\u56de\u306f\u5b89\u5168\u3092\u7b2c\u4e00\u306b\u8003\u3048\u3001\u306a\u308b\u3079\u304f\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3057\u306a\u3044\u65b9\u91dd\u3067\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u306f\u4e00\u5207\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3001\u6975\u3081\u3066\u9650\u5b9a\u3055\u308c\u305f\u30da\u30fc\u30b8\u3067\u306e\u307f\u3001\u4fdd\u5b88\u7684\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4e00\u5207\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u3001CloudFront\u3067\u306f \u300c<strong>\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc\u3092\u30aa\u30ea\u30b8\u30f3\u306b\u8ee2\u9001\u3059\u308b<\/strong>\u300d\u8a2d\u5b9a\u306b\u3057\u307e\u3059\u3002\u5f53\u521d\u81ea\u5206\u306f\u5168\u3066\u306eTTL\u306e\u8a2d\u5b9a\u30920\u79d2\u306b\u3059\u308b\u3053\u3068\u3067\u5bfe\u5fdc\u3057\u3088\u3046\u304b\u3068\u8003\u3048\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u5b8c\u5168\u306b\u7121\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u3053\u306e\u8a2d\u5b9a\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AmazonCloudFront\/latest\/DeveloperGuide\/Expiration.html\">https:\/\/docs.aws.amazon.com\/ja_jp\/AmazonCloudFront\/latest\/DeveloperGuide\/Expiration.html<\/a><\/p>\n<blockquote><p>\u30ad\u30e3\u30c3\u30b7\u30e5\u52d5\u4f5c\u306e\u305f\u3081\u306b\u3059\u3079\u3066\u306e\u30d8\u30c3\u30c0\u30fc\u3092\u30aa\u30ea\u30b8\u30f3\u306b\u8ee2\u9001\u3059\u308b\u3088\u3046\u306b CloudFront \u3092\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u3001CloudFront \u306f\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u307e\u305b\u3093\u3002\u305d\u306e\u4ee3\u308f\u308a\u3001CloudFront \u306f\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u95a2\u3059\u308b\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30aa\u30ea\u30b8\u30f3\u306b\u8ee2\u9001\u3057\u307e\u3059\u3002<\/p><\/blockquote>\n<p>\u3053\u3053\u306b\u3064\u3044\u3066\u306f\u3001TTL\u30920\u306b\u3057\u3066\u304a\u3051\u3070\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u306a\u3044\u3060\u308d\u3046\u3068\u304b\u3001\u30aa\u30ea\u30b8\u30f3\u304b\u3089no-cache\u3084no-store, private\u306a\u3069\u3092\u8fd4\u3057\u3066\u304a\u3051\u3070\u5927\u4e08\u592b\u3060\u308d\u3046\u306a\u3069\u3068\u8003\u3048\u3066\u3057\u307e\u3044\u304c\u3061\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306fCDN\u306b\u3088\u3063\u3066\u3069\u3046\u3044\u3063\u305f\u6271\u3044\u3092\u3059\u308b\u304b\u306f\u7570\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u6ce8\u610f\u6df1\u304f\u78ba\u8a8d\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306bTTL\u304c0\u79d2\u306e\u5834\u5408\u3001\u307b\u307c\u540c\u6642\u523b\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3042\u3063\u305f\u5834\u5408\u306b\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u4f7f\u308f\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AmazonCloudFront\/latest\/DeveloperGuide\/RequestAndResponseBehaviorCustomOrigin.html#request-custom-traffic-spikes\">CloudFront\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 (\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u30d1\u30a4\u30af) \u306e\u540c\u6642\u30ea\u30af\u30a8\u30b9\u30c8<\/a>\u306b\u3082\u3001\u3056\u3063\u304f\u308a\u3068\u3044\u3046\u3068<\/p>\n<ul>\n<li>\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u5b58\u5728\u3057\u306a\u3044\u304b\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u00a0<strong>\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u3066\u3044\u308c\u3070<\/strong>\u00a0\u3059\u3050\u306b\u30aa\u30ea\u30b8\u30f3\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u304c<\/li>\n<li>\u300c\u540c\u3058\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u8ffd\u52a0\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3001\u30aa\u30ea\u30b8\u30f3\u304c\u6700\u521d\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fdc\u7b54\u3059\u308b\u524d\u306b\u30a8\u30c3\u30b8\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5c4a\u304f\u300d\u5834\u5408\u3001\u306a\u308b\u3079\u304f\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u4e00\u77ac\u5f85\u3063\u3066\u30aa\u30ea\u30b8\u30f3\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u304b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u3046\u304b\u6c7a\u3081\u308b<\/li>\n<\/ul>\n<p>\u3068\u3042\u308a\u307e\u3059\u3002\u5f8c\u8005\u306e\u5834\u5408\u3067TTL\u304c0\u79d2\u306e\u5834\u5408\u3001\u5168\u304f\u540c\u3058\u6642\u523b\u3067\u3042\u308c\u3070\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u6709\u52b9\u671f\u9650\u5185\u3068\u307f\u306a\u3055\u308c\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u4f7f\u308f\u308c\u308b\u53ef\u80fd\u6027\u306f\u3042\u308b\u3088\u3046\u306b\u8aad\u3081\u307e\u3059\u3002\uff08\u691c\u8a3c\u306f\u3057\u3066\u3044\u307e\u305b\u3093\uff09<\/p>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AmazonCloudFront\/latest\/DeveloperGuide\/Expiration.html\">\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8<\/a>\u306e\u300c\u30a6\u30a7\u30d6\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067 CloudFront \u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4fdd\u6301\u3059\u308b\u671f\u9593\u306e\u6307\u5b9a\u300d\u306e\u8868\u306e\u4e00\u756a\u4e0b\u306e\u6bb5\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u901a\u308a\u3001\u300c \u30aa\u30ea\u30b8\u30f3\u304c\u3001Cache-Control: no-cache\u3001no-store\u3001\u304a\u3088\u3073 private \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3001\u307e\u305f\u306f\u3053\u306e\u3044\u305a\u308c\u304b\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u8ffd\u52a0\u3059\u308b \u300d\u5834\u5408\u3067\u3082\u3001\u300c\u6700\u5c0f TTL &gt; 0\u79d2\u300d\u3067\u3042\u308c\u3070\u300c CloudFront \u306f\u3001CloudFront \u6700\u5c0f TTL \u306e\u5024\u306b\u5bfe\u5fdc\u3059\u308b\u671f\u9593\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u6301\u3057\u307e\u3059\u3002\u300d\uff01<\/p>\n<p>\u3053\u308c\u3089\u306e\u4e8b\u4f8b\u3084\u8aac\u660e\u3092\u8e0f\u307e\u3048\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3055\u305b\u306a\u3044\u30da\u30fc\u30b8\u3067\u306fTTL\u30920\u79d2\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3084\u3001no-store\u3092\u9001\u3063\u3066\u3044\u308b\u304b\u3089\u5927\u4e08\u592b\u3060\u3068\u5b89\u5fc3\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u5404CDN\u3067\u4e00\u5207\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3055\u305b\u306a\u3044\u305f\u3081\u306b\u3069\u3046\u8a2d\u5b9a\u3059\u308c\u3070\u3088\u3044\u306e\u304b\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30ad\u30fc\u3092\u9069\u5207\u306b<\/h3>\n<p>default\u306e\u8a2d\u5b9a\u3068\u3057\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4e00\u5207\u3057\u306a\u3044\u8a2d\u5b9a\u3092\u3057\u305f\u5f8c\u306f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u305f\u3044\u30da\u30fc\u30b8\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002 \u3053\u306e\u6642\u3001\u3055\u304d\u307b\u3069\u6d17\u3044\u51fa\u3057\u305f\u5909\u6570\u3092\u6f0f\u308c\u306a\u304f\u76db\u308a\u8fbc\u307f\u307e\u3059\u3002\u5fc5\u8981\u306a\u30d8\u30c3\u30c0\u30fc\u3092\u30aa\u30ea\u30b8\u30f3\u306b\u8ee2\u9001\u3057\u3001\u30af\u30c3\u30ad\u30fc\u3082arine.jp\u3067\u30bb\u30c3\u30b7\u30e7\u30f3\u30ad\u30fc\u3068\u3057\u3066\u4f7f\u3063\u3066\u3044\u308b\u3082\u306e\u306f\u8ee2\u9001\u3057\u307e\u3059\u3002\u9593\u9055\u3063\u3066\u3082\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u306e\u30da\u30fc\u30b8\u304c\u4ed6\u306e\u30e6\u30fc\u30b6\u306b\u898b\u3048\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u30af\u30a8\u30ea\u30b9\u30c8\u30ea\u30f3\u30b0\u306b\u3088\u3063\u3066\u30da\u30fc\u30b8\u306e\u8868\u793a\u304c\u5909\u308f\u308b\u5834\u5408\u306f\u3001\u30af\u30a8\u30ea\u30b9\u30c8\u30ea\u30f3\u30b0\u3082\u8ee2\u9001\u3057\u307e\u3059\u3002 ARINE \u306e\u8a18\u4e8b\u30da\u30fc\u30b8\u306f\u4ee5\u524d\u306f page \u306b\u3088\u3063\u3066\u4f55\u30da\u30fc\u30b8\u3092\u51fa\u3059\u304b\u3092\u5206\u3051\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u73fe\u5728\u306f\u30da\u30fc\u30b8\u30f3\u30b0\u304c\u306a\u304f\u306a\u3063\u305f\u305f\u3081\u30af\u30a8\u30ea\u30b9\u30c8\u30ea\u30f3\u30b0\u306b\u3088\u308b\u5909\u66f4\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u7d50\u5c40 ARINE \u306e\u8a18\u4e8b\u30da\u30fc\u30b8\u306e\u5834\u5408\u306f\u3001\u30d1\u30b9\u306e\u4ed6\u306b<\/p>\n<ul>\n<li>Origin\u30d8\u30c3\u30c0\u30fc<\/li>\n<li>Host\u30d8\u30c3\u30c0\u30fc<\/li>\n<li>CloudFront-Is-* \u30d8\u30c3\u30c0\u30fc<\/li>\n<li>Accept\u30d8\u30c3\u30c0\u30fc<\/li>\n<li>Accept-Encoding\u30d8\u30c3\u30c0\u30fc<\/li>\n<li>arine.jp\u5411\u3051\u306e\u30af\u30c3\u30ad\u30fc<\/li>\n<\/ul>\n<p>\u3092\u30aa\u30ea\u30b8\u30f3\u306b\u8ee2\u9001\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30d1\u30b9\u30d1\u30bf\u30fc\u30f3\u3092\u904e\u4e0d\u8db3\u306a\u304f<\/h3>\n<p>CloudFront\u3067\u306f\u30d1\u30b9\u30d1\u30bf\u30fc\u30f3\u306b\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u306f\u4f7f\u3048\u307e\u3059\u304c\u6b63\u898f\u8868\u73fe\u3067\u306f\u306a\u3044\u306e\u3067\u3001ID\u306a\u3069\u3092\u542b\u307f\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u542b\u3080\u30d1\u30bf\u30fc\u30f3\u306e\u5834\u5408\u3001\u610f\u56f3\u3057\u306a\u3044\u30da\u30fc\u30b8\u304c\u524d\u65b9\u4e00\u81f4\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u306a\u3044\u304b\u306b\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56deARINE\u3067\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u305f\u304b\u3063\u305f\u306e\u306f\/articles\/<em>\u3067\u3059\u304c\u3001\u6b63\u898f\u8868\u73fe\u3067\u66f8\u304f\u306a\u3089\u3070 \/\\articles\/\\d+(?.<\/em>)?$\/ \u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u5b9f\u969b\u306b\u306f\/articles\/\\d+\/edit\u3068\u3044\u3046\u30da\u30fc\u30b8\u306a\u3069\u3082\u5b58\u5728\u3059\u308b\u305f\u3081\u3001\u305d\u3061\u3089\u306b\u3082\u30de\u30c3\u30c1\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3046\u3044\u3063\u305f\u5834\u5408\u306b\u306f\u8a72\u5f53\u3059\u308b\u30d1\u30b9\u30d1\u30bf\u30fc\u30f3\u3088\u308a\u4e0a\uff08\u9ad8\u3044\u512a\u5148\u9806\u4f4d\uff09\u306b\u3001\u3088\u308a\u6b63\u78ba\u306b\u4e00\u81f4\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u306a\u3044\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30a8\u30e9\u30fc\u306e\u969b\u306e\u30ad\u30e3\u30c3\u30b7\u30e5<\/h3>\n<p>\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u304c200\u3067\u306a\u304b\u3063\u305f\u5834\u5408\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f5\u5206\u3068(\u4ed6\u306eCDN\u3068\u6bd4\u8f03\u3057\u3066)\u9577\u3044\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<h2>\u52b9\u679c<\/h2>\n<p>\u5c0e\u5165\u3057\u3066\u307f\u305f\u7d50\u679c\u3001\u3069\u306e\u7a0b\u5ea6\u52b9\u679c\u304c\u3042\u3063\u305f\u306e\u304b\u304c\u6c17\u306b\u306a\u308b\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>ARINE\u3067\u306ftiming API\u3092\u4f7f\u3044\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u5b9f\u969b\u306b\u30da\u30fc\u30b8\u3092\u898b\u305f\u6642\u306b\u30ed\u30fc\u30c9\u306b\u3069\u306e\u304f\u3089\u3044\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3044\u308b\u306e\u304b\u3092\u8a08\u6e2c\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306b\u306f\u3001\u5e83\u544a\u304c\u5165\u3063\u3066\u3044\u308b\u305f\u3081\u30ed\u30fc\u30c9\u6642\u9593\u306f\u53c2\u8003\u306b\u306a\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u2026\u3001\u5c11\u306a\u304f\u3068\u3082TTFB\u304c\u901f\u304f\u306a\u3063\u3066\u3044\u308c\u3070\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u3088\u308b\u52b9\u679c\u304c\u3042\u308b\u3068\u3044\u3048\u305d\u3046\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-17165\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2018\/08\/ttfb-600x311.png\" alt=\"\" width=\"600\" height=\"311\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2018\/08\/ttfb-600x311.png 600w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2018\/08\/ttfb-276x143.png 276w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2018\/08\/ttfb-768x399.png 768w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2018\/08\/ttfb-830x431.png 830w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2018\/08\/ttfb.png 1202w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\u7d50\u679c\u3068\u3057\u3066\u306f\u3001\u78ba\u5b9f\u306bTTFB\u304c\u77ed\u304f\u306a\u3063\u3066\u304a\u308a\u3001\u52b9\u679c\u304c\u3042\u3063\u305f\u3068\u3044\u3048\u307e\u3059\u3002\u30d2\u30c3\u30c8\u7387\u3082\u304b\u306a\u308a\u826f\u3044\u306e\u3067\u30b5\u30fc\u30d0\u30fc\u5074\u306e\u8ca0\u62c5\u3082\u6e1b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u8868\u306f\u5c0e\u5165\u5f8c1\u9031\u9593~2\u9031\u9593\u306e\u9593\u306e\u30a2\u30af\u30bb\u30b9\u6570\u304c\u4e0a\u4f4d10\u4ef6\u8a18\u4e8b\u306e\u30d2\u30c3\u30c8\u7387\u3092\u9806\u306b\u4e26\u3079\u305f\u3082\u306e\u3067\u3059\u3002\u9ad8\u3044\u3082\u306e\u306f80%\u307b\u3069\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<table dir=\"ltr\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col width=\"100\" \/>\n<col width=\"100\" \/><\/colgroup>\n<tbody>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;\/articles\/9399&quot;}\">\/articles\/9399<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.7973291437549097}\" data-sheets-numberformat=\"{&quot;1&quot;:3,&quot;2&quot;:&quot;0.00%&quot;,&quot;3&quot;:1}\">79.73%<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;\/articles\/9892&quot;}\">\/articles\/9892<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.7952182952182952}\" data-sheets-numberformat=\"{&quot;1&quot;:3,&quot;2&quot;:&quot;0.00%&quot;,&quot;3&quot;:1}\">79.52%<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;\/articles\/9072&quot;}\">\/articles\/9072<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.792751677852349}\" data-sheets-numberformat=\"{&quot;1&quot;:3,&quot;2&quot;:&quot;0.00%&quot;,&quot;3&quot;:1}\">79.28%<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;\/articles\/9488&quot;}\">\/articles\/9488<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.7870769230769231}\" data-sheets-numberformat=\"{&quot;1&quot;:3,&quot;2&quot;:&quot;0.00%&quot;,&quot;3&quot;:1}\">78.71%<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;\/articles\/8782&quot;}\">\/articles\/8782<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.7749403341288783}\" data-sheets-numberformat=\"{&quot;1&quot;:3,&quot;2&quot;:&quot;0.00%&quot;,&quot;3&quot;:1}\">77.49%<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;\/articles\/9210&quot;}\">\/articles\/9210<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.7689678742310321}\" data-sheets-numberformat=\"{&quot;1&quot;:3,&quot;2&quot;:&quot;0.00%&quot;,&quot;3&quot;:1}\">76.90%<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;\/articles\/24210&quot;}\">\/articles\/24210<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.7644539614561028}\" data-sheets-numberformat=\"{&quot;1&quot;:3,&quot;2&quot;:&quot;0.00%&quot;,&quot;3&quot;:1}\">76.45%<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;\/articles\/5555&quot;}\">\/articles\/5555<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.7323217442545669}\" data-sheets-numberformat=\"{&quot;1&quot;:3,&quot;2&quot;:&quot;0.00%&quot;,&quot;3&quot;:1}\">73.23%<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;\/articles\/27377&quot;}\">\/articles\/27377<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.45359648622440246}\" data-sheets-numberformat=\"{&quot;1&quot;:3,&quot;2&quot;:&quot;0.00%&quot;,&quot;3&quot;:1}\">45.36%<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;\/articles\/23383&quot;}\">\/articles\/23383<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.39791343335057766}\" data-sheets-numberformat=\"{&quot;1&quot;:3,&quot;2&quot;:&quot;0.00%&quot;,&quot;3&quot;:1}\">39.79%<\/td>\n<\/tr>\n<tr>\n<td data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;\/articles\/25640&quot;}\">\/articles\/25640<\/td>\n<td data-sheets-value=\"{&quot;1&quot;:3,&quot;3&quot;:0.3773358477627293}\" data-sheets-numberformat=\"{&quot;1&quot;:3,&quot;2&quot;:&quot;0.00%&quot;,&quot;3&quot;:1}\">37.73%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5e73\u5747\u7684\u306b\u3082\u8a18\u4e8b\u30da\u30fc\u30b8\u306f50%\u7a0b\u5ea6\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u5931\u6557<\/h2>\n<p>\u3055\u3066\u3001\u5148\u307b\u3069\u91cd\u8981\u306a\u8a2d\u5b9a\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u305f\u3068\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u306a\u3093\u3060\u3063\u305f\u304b\u3068\u3044\u3046\u3068 nginx \u3067\u3044\u3046 realip \u306e\u8a2d\u5b9a\u3067\u3059\u3002 \u3082\u3068\u3082\u3068 ALB \u2192 nginx \u2192 Rails\u3068\u3044\u3046\u69cb\u6210\u3067\u3059\u306e\u3067\u3001\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u518d\u5e30\u7684\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u89e3\u6c7a\u3059\u308breal_ip_recursive\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3068\u3001CloudFront\u306eIP\u30ec\u30f3\u30b8\u3092set_real_ip_from\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3092\u5931\u5ff5\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u305f\u3081\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u6b63\u3057\u304f\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3057\u3070\u3089\u304f\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u6700\u60aa\u3067\u3082\u30ea\u30ea\u30fc\u30b9\u5f8c\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u3061\u3083\u3093\u3068\u898b\u3066\u304a\u3051\u3070\u30ea\u30ea\u30fc\u30b9\u5f8c\u3059\u3050\u306b\u6c17\u4ed8\u304f\u3053\u3068\u304c\u3067\u304d\u305f\u306f\u305a\u3067\u3059\u306e\u3067\u3001\u53cd\u7701\u3067\u3059\u3002\u307e\u305f\u3001\u672c\u6765\u306fCDN\u3084\u30a4\u30f3\u30d5\u30e9\u5468\u308a\u306e\u8a2d\u5b9a\u306f\u30a4\u30f3\u30d5\u30e9\u62c5\u5f53\u306e\u90e8\u7f72\u306b\u4f9d\u983c\u3059\u308c\u3070\u6b63\u3057\u304f\u8a2d\u5b9a\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u81ea\u5206\u306e\u5e0c\u671b\u3067\u81ea\u5206\u3067\u8a2d\u5b9a\u3057\u3066\u30df\u30b9\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u30a4\u30f3\u30d5\u30e9\u306e\u62c5\u5f53\u30c1\u30fc\u30e0\u306b\u4f9d\u983c\u3057\u3066\u3044\u308c\u3070\u8d77\u304d\u306a\u304b\u3063\u305f\u554f\u984c\u3067\u3059\u3002CDN\u306e\u8a2d\u5b9a\u3060\u3051\u3067\u306f\u306a\u304f\u69cb\u6210\u5168\u4f53\u3068\u305d\u306e\u8a2d\u5b9a\u542b\u3081\u30ec\u30d3\u30e5\u30fc\u3057\u3066\u3082\u3089\u3046\u3079\u304d\u3067\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u306f\u30ea\u30ea\u30fc\u30b9\u7fcc\u65e5\u3001\u898b\u3048\u308b\u306f\u305a\u306e\u30da\u30fc\u30b8\u304c\u898b\u3048\u306a\u3044\u3068\u3044\u3046\u30c1\u30fc\u30e0\u5185\u304b\u3089\u306e\u554f\u3044\u5408\u308f\u305b\u3067\u767a\u899a\u3057\u307e\u3057\u305f\u3002\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u8907\u6570\u306e\u610f\u5473\u3092\u6301\u305f\u305b\u306a\u3044\u3053\u3068\u304c\u91cd\u8981\u3067\u3001\u30da\u30fc\u30b8\u306b\u5f71\u97ff\u3059\u308b\u5909\u6570\u3092\u6d17\u3044\u51fa\u3059\u3053\u3068\u304c\u91cd\u8981\u3060\u3068\u3044\u3044\u3001\u614e\u91cd\u306b\u8abf\u67fb\u3057\u3066\u3044\u305f\u306b\u3082\u95a2\u308f\u3089\u305a\u6f0f\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u305f\u3082\u306e\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u5b9f\u306f\u30a2\u30af\u30bb\u30b9\u5143\u306eIP\u30a2\u30c9\u30ec\u30b9\u306b\u3088\u3063\u3066\u898b\u3048\u308b\u304b\u898b\u3048\u306a\u3044\u304b\u3092\u5224\u65ad\u3057\u3066\u3044\u308b\u7b87\u6240\u304c\u3042\u308a\u3001\u30a2\u30af\u30bb\u30b9\u5143\u306e\u30a2\u30c9\u30ec\u30b9\u304c\u6b63\u3057\u304f\u53d6\u5f97\u3067\u304d\u306a\u304f\u306a\u3063\u305f\u3053\u3068\u306b\u3088\u3063\u3066\u5224\u5b9a\u306b\u5931\u6557\u3057\u3001\u610f\u56f3\u305b\u305a\u898b\u3048\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u898b\u3048\u308b\u3079\u304d\u306a\u306e\u306b\u898b\u3048\u306a\u3044\u3001\u3068\u3044\u3046\u65b9\u5411\u306e\u5931\u6557\u3067\u3042\u3063\u305f\u3053\u3068\u306f\u4e0d\u5e78\u4e2d\u306e\u5e78\u3044\u3067\u3057\u305f\u3002<\/p>\n<p>\u4eca\u306f\u6b63\u3057\u304f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3059\u308b\u3088\u3046\u8a2d\u5b9a\u3057\u3001CloudFront\u306eIP\u30a2\u30c9\u30ec\u30b9\u5e2f\u3092\u30c7\u30a4\u30ea\u30fc\u3067\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3001\u5909\u66f4\u304c\u3042\u3063\u305f\u3089\u691c\u77e5\u3057\u3066\u53cd\u6620\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u4eca\u5f8c<\/h2>\n<p>\u307e\u3060\u307e\u3060CDN\u3092\u5c0e\u5165\u3067\u304d\u305f\u3060\u3051\u306e\u6bb5\u968e\u306a\u306e\u3067\u3001\u8ab2\u984c\u3068\u3057\u3066\u6b8b\u3063\u3066\u3044\u308b\u3053\u3068\u3082\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h4>\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u304d\u308b\u7bc4\u56f2\u3092\u5897\u3084\u3059<\/h4>\n<p>\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u3064\u3044\u3066\u306f\u73fe\u72b6\u306e\u8a2d\u5b9a\u3067\u306f\u3001\u306a\u3093\u3089\u304b\u306e\u30da\u30fc\u30b8\u3067\u30af\u30c3\u30ad\u30fc\u304c\u4e00\u5ea6\u767a\u884c\u3055\u308c\u3066\u3057\u307e\u3046\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3068\u306f\u95a2\u4fc2\u306a\u304f\u8a18\u4e8b\u30da\u30fc\u30b8\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u304d\u308b\u3088\u3046\u306b\u30da\u30fc\u30b8\u3092\u4f5c\u308a\u304b\u3048\u3066\u3001\u3088\u308a\u30d2\u30c3\u30c8\u7387\u3092\u9ad8\u3081\u3089\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u73fe\u5728\u306f\u30a6\u30a7\u30d6\u306e\u30da\u30fc\u30b8\u3057\u304bCDN\u3092\u901a\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u30a2\u30d7\u30ea\u5411\u3051\u306eAPI\u3082CDN\u3092\u901a\u3059\u3088\u3046\u306b\u3057\u3088\u3046\u3068\u8a08\u753b\u3057\u3066\u3044\u307e\u3059\u3002\u73fe\u72b6\u306eAPI\u306f\u307b\u3068\u3093\u3069\u5168\u3066\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3067\u30e6\u30fc\u30b6\u30fc\u306b\u56fa\u6709\u306e\u60c5\u5831\u3092\u8fd4\u3059\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001CDN\u3092\u901a\u3057\u3066\u3082\u307b\u307c\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u3067\u304d\u305a\u610f\u5473\u304c\u306a\u3044\u306e\u3067\u3001\u305d\u3053\u3092\u4f5c\u308a\u5909\u3048\u308b\u3068\u3053\u308d\u304b\u3089\u3067\u304b\u306a\u308a\u9577\u3044\u9053\u306e\u308a\u306b\u306f\u306a\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<h4>\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3092\u6700\u9069\u5316\u3059\u308b<\/h4>\n<p>Google \u306e PageSpeed Insights \u3084 Lighthouse \u3067 ARINE \u306e\u30da\u30fc\u30b8\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068\u3001\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3092\u30d6\u30ed\u30c3\u30af\u3057\u3066\u3044\u308bJavaScript\u3084CSS\u304c\u3042\u308b\u3068\u6ce8\u610f\u3055\u308c\u307e\u3059\u3002\u4eca\u307e\u3067\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u5074\u306e\u901f\u5ea6\u306e\u6539\u5584\u306b\u306f\u7740\u624b\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u3084\u308c\u308b\u3053\u3068\u304c\u305f\u304f\u3055\u3093\u3042\u308b\u306e\u3067\u4eca\u5f8c\u6539\u5584\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h4>gzip\u3092\u6709\u52b9\u306b\u3059\u308b<\/h4>\n<p>\u30d6\u30ed\u30b0\u3092\u66f8\u3044\u3066\u3044\u305f\u3089\u65e9\u901f\u3044\u308f\u306a\u3061\u3083\u3093\u3055\u3093\u304b\u3089\u30a2\u30c9\u30d0\u30a4\u30b9\u3092\u9802\u3044\u305f\u306e\u3067\u3001gzip \u3092\u6709\u52b9\u306b\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h4>Set-Cookie\u306f\u6d88\u3059<\/h4>\n<p>Set-Cookie\u3092\u8fd4\u3057\u305f\u307e\u307e\u306e\u30da\u30fc\u30b8\u3082\u3042\u308b\u306e\u3067\u3001\u7279\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3059\u308b\u30da\u30fc\u30b8\u3067\u306f\u30e6\u30fc\u30b6\u30fc\u3054\u3068\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u306a\u3063\u3066\u3044\u3066\u3082\u5ff5\u306e\u70ba Lamdba@edge \u3067\u524a\u9664\u3057\u3088\u3046\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u6700\u5f8c\u306b<\/h2>\n<p>\u4eca\u56de\u306f\u7f8e\u5bb9\u30e1\u30c7\u30a3\u30a2ARINE\u3092CloudFront\u3092\u901a\u3057\u3066\u914d\u4fe1\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u306e\u3067\u305d\u306e\u632f\u308a\u8fd4\u308a\u3092\u4e00\u901a\u308a\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002\u52d5\u7684\u306a\u30da\u30fc\u30b8\u3092CDN\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3068\u3001\u4e0d\u5099\u304c\u3042\u3063\u305f\u969b\u306b\u60c5\u5831\u306e\u6d41\u51fa\u306a\u3069\u306e\u30ea\u30b9\u30af\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u614e\u91cd\u306a\u5bfe\u5fdc\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u5c0e\u5165\u3067\u304d\u308b\u3068\u7279\u306b\u30a2\u30af\u30bb\u30b9\u304c\u591a\u304f\u306a\u3063\u305f\u3068\u304d\u306a\u3069\u306b\u5927\u304d\u306a\u52b9\u679c\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u9ad8\u5ea6\u306a\u3053\u3068\u306f\u5168\u7136\u3084\u3063\u3066\u304a\u3089\u305a\u3001\u307e\u305f\u30ad\u30e3\u30c3\u30b7\u30e5\u5468\u308a\u306e\u8a2d\u5b9a\u3092\u4e2d\u5fc3\u306b\u66f8\u3044\u305f\u306e\u3067\u65e2\u306b\u308f\u304b\u308a\u304d\u3063\u305f\u3053\u3068\u304c\u591a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001CDN\u3092\u5c0e\u5165\u3059\u308b\u306b\u3042\u305f\u308a\u53c2\u8003\u306b\u306a\u308b\u3053\u3068\u304c\u5c11\u3057\u3067\u3082\u3042\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a2\u30ea\u30cd\u30c1\u30fc\u30e0\u306e\u5e73\u7530\u3067\u3059\u3002\u6bce\u65e5\u306b\u61a7\u308c\u3092\u3001\u306a\u7f8e\u5bb9\u30e1\u30c7\u30a3\u30a2ARINE\u3067\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u958b\u767a\u3092\u3057\u305f\u308a\u30a4\u30f3\u30d5\u30e9\u56de\u308a\u3092\u898b\u3066\u3044\u307e\u3059\u3002 \u6700\u8fd1ARINE(https:\/\/arine.jp)\u306fAmazon CloudFront\u3092\u901a\u3057\u3066\u30da\u30fc\u30b8 [&hellip;]<\/p>\n","protected":false},"author":187,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[114,25],"class_list":["post-17156","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-aws","tag-ruby"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/17156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/187"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=17156"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/17156\/revisions"}],"predecessor-version":[{"id":17188,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/17156\/revisions\/17188"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=17156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=17156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=17156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}