{"action":"created","issue":{"url":"https://api.github.com/repos/badges/shields/issues/534","labels_url":"https://api.github.com/repos/badges/shields/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/badges/shields/issues/534/comments","events_url":"https://api.github.com/repos/badges/shields/issues/534/events","html_url":"https://github.com/badges/shields/issues/534","id":106299904,"number":534,"title":"Allow configuring caching upon request","user":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-14T09:02:59Z","updated_at":"2015-11-10T11:16:08Z","closed_at":null,"body":"It seems that shields.io configures caching headers to cache for very little time, if at all. The result is that if a site has shields on multiple pages, navigating between them provides a poor experience as shields are downloaded again and again.\r\n\r\nHow about allowing websites to configure how long badges should be cached via a parameters (like `link`, `logoWidth`...)?"},"comment":{"url":"https://api.github.com/repos/badges/shields/issues/comments/155392508","html_url":"https://github.com/badges/shields/issues/534#issuecomment-155392508","issue_url":"https://api.github.com/repos/badges/shields/issues/534","id":155392508,"user":{"login":"espadrine","id":100689,"avatar_url":"https://avatars.githubusercontent.com/u/100689?v=3","gravatar_id":"","url":"https://api.github.com/users/espadrine","html_url":"https://github.com/espadrine","followers_url":"https://api.github.com/users/espadrine/followers","following_url":"https://api.github.com/users/espadrine/following{/other_user}","gists_url":"https://api.github.com/users/espadrine/gists{/gist_id}","starred_url":"https://api.github.com/users/espadrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/espadrine/subscriptions","organizations_url":"https://api.github.com/users/espadrine/orgs","repos_url":"https://api.github.com/users/espadrine/repos","events_url":"https://api.github.com/users/espadrine/events{/privacy}","received_events_url":"https://api.github.com/users/espadrine/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T11:16:08Z","updated_at":"2015-11-10T11:16:08Z","body":"@roji I think we're on the same page. Would setting a Cache-Control max-age be suitable? Maybe via `?maxAge=…`? I'm not sure if `maxAge` is very explicit in what it does, maybe `browserCacheSec=…`?"}}