{"action":"created","issue":{"url":"https://api.github.com/repos/quran/audio.quran.com/issues/107","repository_url":"https://api.github.com/repos/quran/audio.quran.com","labels_url":"https://api.github.com/repos/quran/audio.quran.com/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/quran/audio.quran.com/issues/107/comments","events_url":"https://api.github.com/repos/quran/audio.quran.com/issues/107/events","html_url":"https://github.com/quran/audio.quran.com/issues/107","id":326349373,"number":107,"title":"Send cache headers","user":{"login":"mustafa0x","id":1473102,"avatar_url":"https://avatars3.githubusercontent.com/u/1473102?v=4","gravatar_id":"","url":"https://api.github.com/users/mustafa0x","html_url":"https://github.com/mustafa0x","followers_url":"https://api.github.com/users/mustafa0x/followers","following_url":"https://api.github.com/users/mustafa0x/following{/other_user}","gists_url":"https://api.github.com/users/mustafa0x/gists{/gist_id}","starred_url":"https://api.github.com/users/mustafa0x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustafa0x/subscriptions","organizations_url":"https://api.github.com/users/mustafa0x/orgs","repos_url":"https://api.github.com/users/mustafa0x/repos","events_url":"https://api.github.com/users/mustafa0x/events{/privacy}","received_events_url":"https://api.github.com/users/mustafa0x/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-25T01:21:04Z","updated_at":"2018-05-25T08:37:19Z","closed_at":null,"author_association":"NONE","body":"Nginx config:\r\n```\r\nlocation ~* \\.mp3$ {\r\n    expires 1y;\r\n}\r\n```\r\n\r\nI use this on muqri.com and have noticed that it makes a pretty big impact, especially when replaying old stuff. I can turn off all network and play files that have been played before.\r\n\r\nIt adds two headers to the response:\r\n```\r\nCache-Control: max-age=31536000\r\nExpires: Sat, 25 May 2019 01:13:32 GMT\r\n```"},"comment":{"url":"https://api.github.com/repos/quran/audio.quran.com/issues/comments/391983337","html_url":"https://github.com/quran/audio.quran.com/issues/107#issuecomment-391983337","issue_url":"https://api.github.com/repos/quran/audio.quran.com/issues/107","id":391983337,"user":{"login":"sabeurthabti","id":2606228,"avatar_url":"https://avatars1.githubusercontent.com/u/2606228?v=4","gravatar_id":"","url":"https://api.github.com/users/sabeurthabti","html_url":"https://github.com/sabeurthabti","followers_url":"https://api.github.com/users/sabeurthabti/followers","following_url":"https://api.github.com/users/sabeurthabti/following{/other_user}","gists_url":"https://api.github.com/users/sabeurthabti/gists{/gist_id}","starred_url":"https://api.github.com/users/sabeurthabti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabeurthabti/subscriptions","organizations_url":"https://api.github.com/users/sabeurthabti/orgs","repos_url":"https://api.github.com/users/sabeurthabti/repos","events_url":"https://api.github.com/users/sabeurthabti/events{/privacy}","received_events_url":"https://api.github.com/users/sabeurthabti/received_events","type":"User","site_admin":false},"created_at":"2018-05-25T08:37:19Z","updated_at":"2018-05-25T08:37:19Z","author_association":"COLLABORATOR","body":"@mustafa0x can't we achieve the same by adding the cache headers on the mp3 endpoint ? \r\nhttps://github.com/quran/audio.quran.com/blob/master/api/routes/audio_files.js#L17"}}
{"actor":{"display_login":"sabeurthabti"}}