{"action":"created","comment":{"url":"https://api.github.com/repos/twreporter/twreporter-react/pulls/comments/218703751","pull_request_review_id":156697466,"id":218703751,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODcwMzc1MQ==","diff_hunk":"@@ -58,13 +58,41 @@ app.use(function (req, res, next) {\n   next()\n })\n \n-// Add max-age: 900 on response header of /sw.js\n-app.get('/sw.js', Express.static(path.join(__dirname, '..'), { maxAge: 900 }))\n+app.get('/sw.js', function (req, res, next) {\n+  const options = {\n+    headers:{\n+      'Cache-Control': 'public, max-age=900, must-revalidate'\n+    },\n+    root: path.resolve(__dirname + '/../')\n+  }\n+\n+  res.sendFile('sw.js', options, function (err) {\n+    if (err) {\n+      next(err)\n+    }\n+  })\n+})\n+\n+app.get('/BingSiteAuth.xml', function (req, res, next) {\n+  const options = {\n+    headers: {\n+      'Cache-Control': 'public, max-age=2419200, must-revalidate'\n+    },\n+    root: path.resolve(__dirname + '/../static/')\n+  }\n+\n+  res.sendFile('BingSiteAuth.xml', options, function (err) {\n+    if (err) {\n+      next(err)\n+    }\n+  })\n+})\n \n app.get('/robots.txt', (req, res) => {\n   res.format({\n     'text/plain': function () {\n-      res.status(200).render('robots')\n+      res.status(200).send('User-agent: * \\n' +\n+      'Sitemap: https://www.twreporter.org/sitemaps/twreporter-sitemap.xml')","path":"src/server.js","position":41,"original_position":41,"commit_id":"ad291d7221f4eb0625294085e5abf11ef2767198","original_commit_id":"ad291d7221f4eb0625294085e5abf11ef2767198","user":{"login":"nickhsine","id":3000343,"node_id":"MDQ6VXNlcjMwMDAzNDM=","avatar_url":"https://avatars1.githubusercontent.com/u/3000343?v=4","gravatar_id":"","url":"https://api.github.com/users/nickhsine","html_url":"https://github.com/nickhsine","followers_url":"https://api.github.com/users/nickhsine/followers","following_url":"https://api.github.com/users/nickhsine/following{/other_user}","gists_url":"https://api.github.com/users/nickhsine/gists{/gist_id}","starred_url":"https://api.github.com/users/nickhsine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickhsine/subscriptions","organizations_url":"https://api.github.com/users/nickhsine/orgs","repos_url":"https://api.github.com/users/nickhsine/repos","events_url":"https://api.github.com/users/nickhsine/events{/privacy}","received_events_url":"https://api.github.com/users/nickhsine/received_events","type":"User","site_admin":false},"body":"if you want to know the details, you can see https://staging.twreporter.org/sitemaps/twreporter-sitemap.xml first.","created_at":"2018-09-19T08:00:54Z","updated_at":"2018-09-19T08:00:54Z","html_url":"https://github.com/twreporter/twreporter-react/pull/1038#discussion_r218703751","pull_request_url":"https://api.github.com/repos/twreporter/twreporter-react/pulls/1038","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/twreporter/twreporter-react/pulls/comments/218703751"},"html":{"href":"https://github.com/twreporter/twreporter-react/pull/1038#discussion_r218703751"},"pull_request":{"href":"https://api.github.com/repos/twreporter/twreporter-react/pulls/1038"}}},"pull_request":{"url":"https://api.github.com/repos/twreporter/twreporter-react/pulls/1038","id":216515211,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2NTE1MjEx","html_url":"https://github.com/twreporter/twreporter-react/pull/1038","diff_url":"https://github.com/twreporter/twreporter-react/pull/1038.diff","patch_url":"https://github.com/twreporter/twreporter-react/pull/1038.patch","issue_url":"https://api.github.com/repos/twreporter/twreporter-react/issues/1038","number":1038,"state":"open","locked":false,"title":"seo enhancement","user":{"login":"nickhsine","id":3000343,"node_id":"MDQ6VXNlcjMwMDAzNDM=","avatar_url":"https://avatars1.githubusercontent.com/u/3000343?v=4","gravatar_id":"","url":"https://api.github.com/users/nickhsine","html_url":"https://github.com/nickhsine","followers_url":"https://api.github.com/users/nickhsine/followers","following_url":"https://api.github.com/users/nickhsine/following{/other_user}","gists_url":"https://api.github.com/users/nickhsine/gists{/gist_id}","starred_url":"https://api.github.com/users/nickhsine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickhsine/subscriptions","organizations_url":"https://api.github.com/users/nickhsine/orgs","repos_url":"https://api.github.com/users/nickhsine/repos","events_url":"https://api.github.com/users/nickhsine/events{/privacy}","received_events_url":"https://api.github.com/users/nickhsine/received_events","type":"User","site_admin":false},"body":"@YuCJ ","created_at":"2018-09-19T05:05:28Z","updated_at":"2018-09-19T08:00:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61737ecfb383cedd20420f62356d48646332411d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/twreporter/twreporter-react/pulls/1038/commits","review_comments_url":"https://api.github.com/repos/twreporter/twreporter-react/pulls/1038/comments","review_comment_url":"https://api.github.com/repos/twreporter/twreporter-react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twreporter/twreporter-react/issues/1038/comments","statuses_url":"https://api.github.com/repos/twreporter/twreporter-react/statuses/ad291d7221f4eb0625294085e5abf11ef2767198","head":{"label":"nickhsine:master","ref":"master","sha":"ad291d7221f4eb0625294085e5abf11ef2767198","user":{"login":"nickhsine","id":3000343,"node_id":"MDQ6VXNlcjMwMDAzNDM=","avatar_url":"https://avatars1.githubusercontent.com/u/3000343?v=4","gravatar_id":"","url":"https://api.github.com/users/nickhsine","html_url":"https://github.com/nickhsine","followers_url":"https://api.github.com/users/nickhsine/followers","following_url":"https://api.github.com/users/nickhsine/following{/other_user}","gists_url":"https://api.github.com/users/nickhsine/gists{/gist_id}","starred_url":"https://api.github.com/users/nickhsine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickhsine/subscriptions","organizations_url":"https://api.github.com/users/nickhsine/orgs","repos_url":"https://api.github.com/users/nickhsine/repos","events_url":"https://api.github.com/users/nickhsine/events{/privacy}","received_events_url":"https://api.github.com/users/nickhsine/received_events","type":"User","site_admin":false},"repo":{"id":45306686,"node_id":"MDEwOlJlcG9zaXRvcnk0NTMwNjY4Ng==","name":"twreporter-react","full_name":"nickhsine/twreporter-react","private":false,"owner":{"login":"nickhsine","id":3000343,"node_id":"MDQ6VXNlcjMwMDAzNDM=","avatar_url":"https://avatars1.githubusercontent.com/u/3000343?v=4","gravatar_id":"","url":"https://api.github.com/users/nickhsine","html_url":"https://github.com/nickhsine","followers_url":"https://api.github.com/users/nickhsine/followers","following_url":"https://api.github.com/users/nickhsine/following{/other_user}","gists_url":"https://api.github.com/users/nickhsine/gists{/gist_id}","starred_url":"https://api.github.com/users/nickhsine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickhsine/subscriptions","organizations_url":"https://api.github.com/users/nickhsine/orgs","repos_url":"https://api.github.com/users/nickhsine/repos","events_url":"https://api.github.com/users/nickhsine/events{/privacy}","received_events_url":"https://api.github.com/users/nickhsine/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nickhsine/twreporter-react","description":"twreporter site with node.js","fork":true,"url":"https://api.github.com/repos/nickhsine/twreporter-react","forks_url":"https://api.github.com/repos/nickhsine/twreporter-react/forks","keys_url":"https://api.github.com/repos/nickhsine/twreporter-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickhsine/twreporter-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickhsine/twreporter-react/teams","hooks_url":"https://api.github.com/repos/nickhsine/twreporter-react/hooks","issue_events_url":"https://api.github.com/repos/nickhsine/twreporter-react/issues/events{/number}","events_url":"https://api.github.com/repos/nickhsine/twreporter-react/events","assignees_url":"https://api.github.com/repos/nickhsine/twreporter-react/assignees{/user}","branches_url":"https://api.github.com/repos/nickhsine/twreporter-react/branches{/branch}","tags_url":"https://api.github.com/repos/nickhsine/twreporter-react/tags","blobs_url":"https://api.github.com/repos/nickhsine/twreporter-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickhsine/twreporter-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickhsine/twreporter-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickhsine/twreporter-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickhsine/twreporter-react/statuses/{sha}","languages_url":"https://api.github.com/repos/nickhsine/twreporter-react/languages","stargazers_url":"https://api.github.com/repos/nickhsine/twreporter-react/stargazers","contributors_url":"https://api.github.com/repos/nickhsine/twreporter-react/contributors","subscribers_url":"https://api.github.com/repos/nickhsine/twreporter-react/subscribers","subscription_url":"https://api.github.com/repos/nickhsine/twreporter-react/subscription","commits_url":"https://api.github.com/repos/nickhsine/twreporter-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickhsine/twreporter-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickhsine/twreporter-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickhsine/twreporter-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickhsine/twreporter-react/contents/{+path}","compare_url":"https://api.github.com/repos/nickhsine/twreporter-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickhsine/twreporter-react/merges","archive_url":"https://api.github.com/repos/nickhsine/twreporter-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickhsine/twreporter-react/downloads","issues_url":"https://api.github.com/repos/nickhsine/twreporter-react/issues{/number}","pulls_url":"https://api.github.com/repos/nickhsine/twreporter-react/pulls{/number}","milestones_url":"https://api.github.com/repos/nickhsine/twreporter-react/milestones{/number}","notifications_url":"https://api.github.com/repos/nickhsine/twreporter-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickhsine/twreporter-react/labels{/name}","releases_url":"https://api.github.com/repos/nickhsine/twreporter-react/releases{/id}","deployments_url":"https://api.github.com/repos/nickhsine/twreporter-react/deployments","created_at":"2015-10-31T15:21:33Z","updated_at":"2018-09-19T07:58:48Z","pushed_at":"2018-09-19T07:58:45Z","git_url":"git://github.com/nickhsine/twreporter-react.git","ssh_url":"git@github.com:nickhsine/twreporter-react.git","clone_url":"https://github.com/nickhsine/twreporter-react.git","svn_url":"https://github.com/nickhsine/twreporter-react","homepage":null,"size":96959,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"twreporter:master","ref":"master","sha":"08b0de95f30b44190c1551bc4c7d800ee8adcbac","user":{"login":"twreporter","id":13784512,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzg0NTEy","avatar_url":"https://avatars3.githubusercontent.com/u/13784512?v=4","gravatar_id":"","url":"https://api.github.com/users/twreporter","html_url":"https://github.com/twreporter","followers_url":"https://api.github.com/users/twreporter/followers","following_url":"https://api.github.com/users/twreporter/following{/other_user}","gists_url":"https://api.github.com/users/twreporter/gists{/gist_id}","starred_url":"https://api.github.com/users/twreporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twreporter/subscriptions","organizations_url":"https://api.github.com/users/twreporter/orgs","repos_url":"https://api.github.com/users/twreporter/repos","events_url":"https://api.github.com/users/twreporter/events{/privacy}","received_events_url":"https://api.github.com/users/twreporter/received_events","type":"Organization","site_admin":false},"repo":{"id":43805497,"node_id":"MDEwOlJlcG9zaXRvcnk0MzgwNTQ5Nw==","name":"twreporter-react","full_name":"twreporter/twreporter-react","private":false,"owner":{"login":"twreporter","id":13784512,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzg0NTEy","avatar_url":"https://avatars3.githubusercontent.com/u/13784512?v=4","gravatar_id":"","url":"https://api.github.com/users/twreporter","html_url":"https://github.com/twreporter","followers_url":"https://api.github.com/users/twreporter/followers","following_url":"https://api.github.com/users/twreporter/following{/other_user}","gists_url":"https://api.github.com/users/twreporter/gists{/gist_id}","starred_url":"https://api.github.com/users/twreporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twreporter/subscriptions","organizations_url":"https://api.github.com/users/twreporter/orgs","repos_url":"https://api.github.com/users/twreporter/repos","events_url":"https://api.github.com/users/twreporter/events{/privacy}","received_events_url":"https://api.github.com/users/twreporter/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/twreporter/twreporter-react","description":"twreporter site with nodejs","fork":false,"url":"https://api.github.com/repos/twreporter/twreporter-react","forks_url":"https://api.github.com/repos/twreporter/twreporter-react/forks","keys_url":"https://api.github.com/repos/twreporter/twreporter-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twreporter/twreporter-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twreporter/twreporter-react/teams","hooks_url":"https://api.github.com/repos/twreporter/twreporter-react/hooks","issue_events_url":"https://api.github.com/repos/twreporter/twreporter-react/issues/events{/number}","events_url":"https://api.github.com/repos/twreporter/twreporter-react/events","assignees_url":"https://api.github.com/repos/twreporter/twreporter-react/assignees{/user}","branches_url":"https://api.github.com/repos/twreporter/twreporter-react/branches{/branch}","tags_url":"https://api.github.com/repos/twreporter/twreporter-react/tags","blobs_url":"https://api.github.com/repos/twreporter/twreporter-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twreporter/twreporter-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twreporter/twreporter-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/twreporter/twreporter-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twreporter/twreporter-react/statuses/{sha}","languages_url":"https://api.github.com/repos/twreporter/twreporter-react/languages","stargazers_url":"https://api.github.com/repos/twreporter/twreporter-react/stargazers","contributors_url":"https://api.github.com/repos/twreporter/twreporter-react/contributors","subscribers_url":"https://api.github.com/repos/twreporter/twreporter-react/subscribers","subscription_url":"https://api.github.com/repos/twreporter/twreporter-react/subscription","commits_url":"https://api.github.com/repos/twreporter/twreporter-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/twreporter/twreporter-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/twreporter/twreporter-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/twreporter/twreporter-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/twreporter/twreporter-react/contents/{+path}","compare_url":"https://api.github.com/repos/twreporter/twreporter-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twreporter/twreporter-react/merges","archive_url":"https://api.github.com/repos/twreporter/twreporter-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twreporter/twreporter-react/downloads","issues_url":"https://api.github.com/repos/twreporter/twreporter-react/issues{/number}","pulls_url":"https://api.github.com/repos/twreporter/twreporter-react/pulls{/number}","milestones_url":"https://api.github.com/repos/twreporter/twreporter-react/milestones{/number}","notifications_url":"https://api.github.com/repos/twreporter/twreporter-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twreporter/twreporter-react/labels{/name}","releases_url":"https://api.github.com/repos/twreporter/twreporter-react/releases{/id}","deployments_url":"https://api.github.com/repos/twreporter/twreporter-react/deployments","created_at":"2015-10-07T09:12:39Z","updated_at":"2018-09-18T10:05:05Z","pushed_at":"2018-09-19T07:58:47Z","git_url":"git://github.com/twreporter/twreporter-react.git","ssh_url":"git@github.com:twreporter/twreporter-react.git","clone_url":"https://github.com/twreporter/twreporter-react.git","svn_url":"https://github.com/twreporter/twreporter-react","homepage":"https://www.twreporter.org","size":97967,"stargazers_count":206,"watchers_count":206,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":46,"open_issues":4,"watchers":206,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twreporter/twreporter-react/pulls/1038"},"html":{"href":"https://github.com/twreporter/twreporter-react/pull/1038"},"issue":{"href":"https://api.github.com/repos/twreporter/twreporter-react/issues/1038"},"comments":{"href":"https://api.github.com/repos/twreporter/twreporter-react/issues/1038/comments"},"review_comments":{"href":"https://api.github.com/repos/twreporter/twreporter-react/pulls/1038/comments"},"review_comment":{"href":"https://api.github.com/repos/twreporter/twreporter-react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twreporter/twreporter-react/pulls/1038/commits"},"statuses":{"href":"https://api.github.com/repos/twreporter/twreporter-react/statuses/ad291d7221f4eb0625294085e5abf11ef2767198"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"nickhsine"}}