{"action":"created","issue":{"url":"https://api.github.com/repos/NekR/offline-plugin/issues/59","repository_url":"https://api.github.com/repos/NekR/offline-plugin","labels_url":"https://api.github.com/repos/NekR/offline-plugin/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/NekR/offline-plugin/issues/59/comments","events_url":"https://api.github.com/repos/NekR/offline-plugin/issues/59/events","html_url":"https://github.com/NekR/offline-plugin/issues/59","id":158195181,"number":59,"title":"Implement caches maps","user":{"login":"NekR","id":1189265,"avatar_url":"https://avatars.githubusercontent.com/u/1189265?v=3","gravatar_id":"","url":"https://api.github.com/users/NekR","html_url":"https://github.com/NekR","followers_url":"https://api.github.com/users/NekR/followers","following_url":"https://api.github.com/users/NekR/following{/other_user}","gists_url":"https://api.github.com/users/NekR/gists{/gist_id}","starred_url":"https://api.github.com/users/NekR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NekR/subscriptions","organizations_url":"https://api.github.com/users/NekR/orgs","repos_url":"https://api.github.com/users/NekR/repos","events_url":"https://api.github.com/users/NekR/events{/privacy}","received_events_url":"https://api.github.com/users/NekR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-02T17:24:01Z","updated_at":"2016-06-03T21:39:39Z","closed_at":null,"body":"The idea is serve **one** cache for any navigation request, `/albums` for example. Same, if cache is empty, any navigation request should populate given cache.\r\n\r\nProbably not _any_. Maybe something specified in map like this:\r\n\r\n```js\r\n{\r\n  '/albums': '/',\r\n  '/gallery': '/'\r\n}\r\n// or\r\n{\r\n  '/*': '/shell.html'\r\n}\r\n``` \r\n\r\n\r\nHere is the use case number one: https://github.com/NekR/offline-plugin/issues/27\r\nSecond use case it to serve server-rendered content on network requests, but in ServiceWorker, cache the AppShell.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NekR/offline-plugin/issues/comments/223701359","html_url":"https://github.com/NekR/offline-plugin/issues/59#issuecomment-223701359","issue_url":"https://api.github.com/repos/NekR/offline-plugin/issues/59","id":223701359,"user":{"login":"NekR","id":1189265,"avatar_url":"https://avatars.githubusercontent.com/u/1189265?v=3","gravatar_id":"","url":"https://api.github.com/users/NekR","html_url":"https://github.com/NekR","followers_url":"https://api.github.com/users/NekR/followers","following_url":"https://api.github.com/users/NekR/following{/other_user}","gists_url":"https://api.github.com/users/NekR/gists{/gist_id}","starred_url":"https://api.github.com/users/NekR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NekR/subscriptions","organizations_url":"https://api.github.com/users/NekR/orgs","repos_url":"https://api.github.com/users/NekR/repos","events_url":"https://api.github.com/users/NekR/events{/privacy}","received_events_url":"https://api.github.com/users/NekR/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T21:39:39Z","updated_at":"2016-06-03T21:39:39Z","body":"I see your point, it's good idea and I think I may do it even before mapping as originally described here.\r\nBut I am not 100% sure about it yet. The idea of plugin was to have completely decorative output, but runtime rewrites requires JavaScript, which ins't declarative of course.\r\n\r\nWith declarative output, we can for example emit JSON file and later feed it to native app/code to handle app's caching.\r\n\r\nI'll think about it."}}
{"actor":{"display_login":"NekR"}}