{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/4520","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/4520/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/4520/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/4520/events","html_url":"https://github.com/ampproject/amphtml/issues/4520","id":171217484,"number":4520,"title":"Weird image problems with AMP cache","user":{"login":"cagataygurturk","id":963018,"avatar_url":"https://avatars.githubusercontent.com/u/963018?v=3","gravatar_id":"","url":"https://api.github.com/users/cagataygurturk","html_url":"https://github.com/cagataygurturk","followers_url":"https://api.github.com/users/cagataygurturk/followers","following_url":"https://api.github.com/users/cagataygurturk/following{/other_user}","gists_url":"https://api.github.com/users/cagataygurturk/gists{/gist_id}","starred_url":"https://api.github.com/users/cagataygurturk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cagataygurturk/subscriptions","organizations_url":"https://api.github.com/users/cagataygurturk/orgs","repos_url":"https://api.github.com/users/cagataygurturk/repos","events_url":"https://api.github.com/users/cagataygurturk/events{/privacy}","received_events_url":"https://api.github.com/users/cagataygurturk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ampproject/amphtml/labels/Related%20To:%20Google%20AMP%20Cache","name":"Related To: Google AMP Cache","color":"d4c5f9"},{"url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Internally%20Tracked","name":"Type: Internally Tracked","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ampproject/amphtml/milestones/20","html_url":"https://github.com/ampproject/amphtml/milestones/Pending%20Triage","labels_url":"https://api.github.com/repos/ampproject/amphtml/milestones/20/labels","id":1884542,"number":20,"title":"Pending Triage","description":"These issues need to get put into another milestone. They should be assigned to the person who can best decide the appropriate milestone. Optionally, the issue can then be assigned to the most likely implementer.","creator":{"login":"rudygalfi","id":3888212,"avatar_url":"https://avatars.githubusercontent.com/u/3888212?v=3","gravatar_id":"","url":"https://api.github.com/users/rudygalfi","html_url":"https://github.com/rudygalfi","followers_url":"https://api.github.com/users/rudygalfi/followers","following_url":"https://api.github.com/users/rudygalfi/following{/other_user}","gists_url":"https://api.github.com/users/rudygalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/rudygalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudygalfi/subscriptions","organizations_url":"https://api.github.com/users/rudygalfi/orgs","repos_url":"https://api.github.com/users/rudygalfi/repos","events_url":"https://api.github.com/users/rudygalfi/events{/privacy}","received_events_url":"https://api.github.com/users/rudygalfi/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":10,"state":"open","created_at":"2016-07-14T23:13:22Z","updated_at":"2016-08-20T17:12:15Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-08-15T17:23:12Z","updated_at":"2016-08-23T17:16:57Z","closed_at":null,"body":"Without explaining so much I will give some image examples which are broken in AMP cache.\r\n\r\nOriginal => https://amp.instela.com/s/images/amp/ic_menu_white_2x_web_24dp_.png\r\nCached => https://cdn.ampproject.org/i/s/amp.instela.com/s/images/amp/ic_menu_white_2x_web_24dp_.png\r\n\r\nTransparency is lost.\r\n\r\nAlso we have a couple of broken images in our microservice which creates user profile pictures:\r\n\r\nhttps://cdn.ampproject.org/i/s/s.instela.com/s/avatar/silhouette836ef76c95a9b0c56ab8cd526e24294e.t.jpg\r\nhttps://cdn.ampproject.org/i/s/s.instela.com/s/avatar/jmh4wafbq2oguqihra8gd74bgxehj5n3r47oenz5pomke425fb.t.jpg\r\nhttps://cdn.ampproject.org/i/s/s.instela.com/s/avatar/f8732dbedf84830ac8da35dffd54a2e09874.t.jpg\r\n\r\nOriginal images are loading correctly, and when I try to access to them via AMP cache I see that cache is getting 200 from backend. So our backend is definitely delivering the image file to cache. \r\n\r\nFor example the same backend code is working for some of images:\r\n\r\nhttps://cdn.ampproject.org/i/s/s.instela.com/s/avatar/432cc7886feb99f6416c83d5007f812920063.t.jpg\r\n\r\nBut roughly 30% of images are giving 404 when they are requested via cache.\r\n\r\nI checked headers and could not find anything specific. Can you help?"},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/241806418","html_url":"https://github.com/ampproject/amphtml/issues/4520#issuecomment-241806418","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/4520","id":241806418,"user":{"login":"cagataygurturk","id":963018,"avatar_url":"https://avatars.githubusercontent.com/u/963018?v=3","gravatar_id":"","url":"https://api.github.com/users/cagataygurturk","html_url":"https://github.com/cagataygurturk","followers_url":"https://api.github.com/users/cagataygurturk/followers","following_url":"https://api.github.com/users/cagataygurturk/following{/other_user}","gists_url":"https://api.github.com/users/cagataygurturk/gists{/gist_id}","starred_url":"https://api.github.com/users/cagataygurturk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cagataygurturk/subscriptions","organizations_url":"https://api.github.com/users/cagataygurturk/orgs","repos_url":"https://api.github.com/users/cagataygurturk/repos","events_url":"https://api.github.com/users/cagataygurturk/events{/privacy}","received_events_url":"https://api.github.com/users/cagataygurturk/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T17:16:57Z","updated_at":"2016-08-23T17:16:57Z","body":"Thank you, then for the most of URL the problem is mime type. It is a bug with our backend but maybe you could consider documenting this behaviour.\r\n\r\nFor the transparent png I think cache still has some problems, that's why i don't close the issue at the moment."}}
{"actor":{"display_login":"cagataygurturk"}}