{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/rkt/issues/1325","labels_url":"https://api.github.com/repos/coreos/rkt/issues/1325/labels{/name}","comments_url":"https://api.github.com/repos/coreos/rkt/issues/1325/comments","events_url":"https://api.github.com/repos/coreos/rkt/issues/1325/events","html_url":"https://github.com/coreos/rkt/issues/1325","id":103046629,"number":1325,"title":"rkt fetch always download dependencies","user":{"login":"n0rad","id":541709,"avatar_url":"https://avatars.githubusercontent.com/u/541709?v=3","gravatar_id":"","url":"https://api.github.com/users/n0rad","html_url":"https://github.com/n0rad","followers_url":"https://api.github.com/users/n0rad/followers","following_url":"https://api.github.com/users/n0rad/following{/other_user}","gists_url":"https://api.github.com/users/n0rad/gists{/gist_id}","starred_url":"https://api.github.com/users/n0rad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n0rad/subscriptions","organizations_url":"https://api.github.com/users/n0rad/orgs","repos_url":"https://api.github.com/users/n0rad/repos","events_url":"https://api.github.com/users/n0rad/events{/privacy}","received_events_url":"https://api.github.com/users/n0rad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/rkt/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/coreos/rkt/milestones/19","html_url":"https://github.com/coreos/rkt/milestones/v0.9.0","labels_url":"https://api.github.com/repos/coreos/rkt/milestones/19/labels","id":1209255,"number":19,"title":"v0.9.0","description":"","creator":{"login":"alban","id":27575,"avatar_url":"https://avatars.githubusercontent.com/u/27575?v=3","gravatar_id":"","url":"https://api.github.com/users/alban","html_url":"https://github.com/alban","followers_url":"https://api.github.com/users/alban/followers","following_url":"https://api.github.com/users/alban/following{/other_user}","gists_url":"https://api.github.com/users/alban/gists{/gist_id}","starred_url":"https://api.github.com/users/alban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alban/subscriptions","organizations_url":"https://api.github.com/users/alban/orgs","repos_url":"https://api.github.com/users/alban/repos","events_url":"https://api.github.com/users/alban/events{/privacy}","received_events_url":"https://api.github.com/users/alban/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":19,"state":"open","created_at":"2015-07-15T13:18:47Z","updated_at":"2015-08-31T04:20:02Z","due_on":"2015-09-02T07:00:00Z","closed_at":null},"comments":10,"created_at":"2015-08-25T15:22:04Z","updated_at":"2015-08-31T10:00:03Z","closed_at":null,"body":"When I try to fetch a local file, RKT always download the dependencies even If I already have it.\r\nThis prevent me from being able to work/test locally since every time it download up to 300Mo for an image. \r\n\r\nI think it's only since last version of RKT 0.8.0, \r\n"},"comment":{"url":"https://api.github.com/repos/coreos/rkt/issues/comments/136321259","html_url":"https://github.com/coreos/rkt/issues/1325#issuecomment-136321259","issue_url":"https://api.github.com/repos/coreos/rkt/issues/1325","id":136321259,"user":{"login":"sgotti","id":1690273,"avatar_url":"https://avatars.githubusercontent.com/u/1690273?v=3","gravatar_id":"","url":"https://api.github.com/users/sgotti","html_url":"https://github.com/sgotti","followers_url":"https://api.github.com/users/sgotti/followers","following_url":"https://api.github.com/users/sgotti/following{/other_user}","gists_url":"https://api.github.com/users/sgotti/gists{/gist_id}","starred_url":"https://api.github.com/users/sgotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgotti/subscriptions","organizations_url":"https://api.github.com/users/sgotti/orgs","repos_url":"https://api.github.com/users/sgotti/repos","events_url":"https://api.github.com/users/sgotti/events{/privacy}","received_events_url":"https://api.github.com/users/sgotti/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T10:00:03Z","updated_at":"2015-08-31T10:00:03Z","body":"@n0rad good. Looks like golang's http.Client default redirect behavior is to create a new request without copying headers from the previous request. For this reason on redirect `Etag` is missing and `User-Agent` is the default `Go 1.1 package http` (see https://github.com/golang/go/issues/4800). \r\nWe should implement a CheckRedirect method to set these ones on every redirect."}}