{"action":"created","issue":{"url":"https://api.github.com/repos/sw360/sw360chores/issues/24","repository_url":"https://api.github.com/repos/sw360/sw360chores","labels_url":"https://api.github.com/repos/sw360/sw360chores/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/sw360/sw360chores/issues/24/comments","events_url":"https://api.github.com/repos/sw360/sw360chores/issues/24/events","html_url":"https://github.com/sw360/sw360chores/issues/24","id":231645278,"number":24,"title":"Configure browser caching in nginx","user":{"login":"bs-jokri","id":13886571,"avatar_url":"https://avatars1.githubusercontent.com/u/13886571?v=3","gravatar_id":"","url":"https://api.github.com/users/bs-jokri","html_url":"https://github.com/bs-jokri","followers_url":"https://api.github.com/users/bs-jokri/followers","following_url":"https://api.github.com/users/bs-jokri/following{/other_user}","gists_url":"https://api.github.com/users/bs-jokri/gists{/gist_id}","starred_url":"https://api.github.com/users/bs-jokri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bs-jokri/subscriptions","organizations_url":"https://api.github.com/users/bs-jokri/orgs","repos_url":"https://api.github.com/users/bs-jokri/repos","events_url":"https://api.github.com/users/bs-jokri/events{/privacy}","received_events_url":"https://api.github.com/users/bs-jokri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-26T14:37:23Z","updated_at":"2017-05-31T18:46:42Z","closed_at":null,"body":"Currently a lot of traffic is created when loading the sw360 pages. Some investigation reveals that a lot of small css other files are fetched by the browser.\r\n\r\nIn order to improve the responsiveness of the page browser caching could help. This feature needs to be configured at the nginx web server. \r\n\r\nSee eg \r\nhttps://www.digitalocean.com/community/tutorials/how-to-implement-browser-caching-with-nginx-s-header-module-on-centos-7 \r\n\r\nfor details. "},"comment":{"url":"https://api.github.com/repos/sw360/sw360chores/issues/comments/305280928","html_url":"https://github.com/sw360/sw360chores/issues/24#issuecomment-305280928","issue_url":"https://api.github.com/repos/sw360/sw360chores/issues/24","id":305280928,"user":{"login":"maximilianhuber","id":1187050,"avatar_url":"https://avatars0.githubusercontent.com/u/1187050?v=3","gravatar_id":"","url":"https://api.github.com/users/maximilianhuber","html_url":"https://github.com/maximilianhuber","followers_url":"https://api.github.com/users/maximilianhuber/followers","following_url":"https://api.github.com/users/maximilianhuber/following{/other_user}","gists_url":"https://api.github.com/users/maximilianhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/maximilianhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximilianhuber/subscriptions","organizations_url":"https://api.github.com/users/maximilianhuber/orgs","repos_url":"https://api.github.com/users/maximilianhuber/repos","events_url":"https://api.github.com/users/maximilianhuber/events{/privacy}","received_events_url":"https://api.github.com/users/maximilianhuber/received_events","type":"User","site_admin":false},"created_at":"2017-05-31T18:46:42Z","updated_at":"2017-05-31T18:46:42Z","body":"Client side caching can be enforced via\r\n```diff\r\ndiff --git a/deployment/sw360nginx/docker-entrypoint.sh b/deployment/sw360nginx/docker-entrypoint.sh\r\nindex 0b51af5..c3856e3 100755\r\n--- a/deployment/sw360nginx/docker-entrypoint.sh\r\n+++ b/deployment/sw360nginx/docker-entrypoint.sh\r\n@@ -35,6 +35,14 @@ fi\r\n ################################################################################\r\n ## generate /etc/nginx/conf.d/nginx-sw360.conf\r\n cat <<EOF > \"/etc/nginx/conf.d/nginx-${HOST}.conf\"\r\n+map \\$sent_http_content_type \\$expires {\r\n+    default                    off;\r\n+    text/html                  epoch;\r\n+    text/css                   max;\r\n+    application/javascript     max;\r\n+    ~image/                    max;\r\n+}\r\n+\r\n upstream ${HOST}-app {\r\n     server ${HOST}:${HOST_PORT} max_fails=3;\r\n }\r\n@@ -69,6 +77,8 @@ server {\r\n         proxy_redirect off;\r\n         proxy_pass  http://${HOST}-app;\r\n         proxy_read_timeout 3600s;\r\n+\r\n+        expires \\$expires;\r\n     }\r\n }\r\n EOF\r\n```\r\nAlthough this was already enabled for some parts"}}
{"actor":{"display_login":"maximilianhuber"}}