{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-php/issues/982","repository_url":"https://api.github.com/repos/aws/aws-sdk-php","labels_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/982/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/982/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/982/events","html_url":"https://github.com/aws/aws-sdk-php/issues/982","id":152981082,"number":982,"title":"Retrieve contentType from object's metadata with StreamWrapper","user":{"login":"servocoder","id":1310273,"avatar_url":"https://avatars.githubusercontent.com/u/1310273?v=3","gravatar_id":"","url":"https://api.github.com/users/servocoder","html_url":"https://github.com/servocoder","followers_url":"https://api.github.com/users/servocoder/followers","following_url":"https://api.github.com/users/servocoder/following{/other_user}","gists_url":"https://api.github.com/users/servocoder/gists{/gist_id}","starred_url":"https://api.github.com/users/servocoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servocoder/subscriptions","organizations_url":"https://api.github.com/users/servocoder/orgs","repos_url":"https://api.github.com/users/servocoder/repos","events_url":"https://api.github.com/users/servocoder/events{/privacy}","received_events_url":"https://api.github.com/users/servocoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-04T10:36:46Z","updated_at":"2016-05-04T19:01:26Z","closed_at":null,"body":"I found that contentType which is provided with object's metadata isn't stored with `url_stat()` / `createStat()`. I suggest to cache contentType of an object and use some php function to retrieve it back from cache. Because currently you have to make a separate HEAD request to get content type."},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-php/issues/comments/216967711","html_url":"https://github.com/aws/aws-sdk-php/issues/982#issuecomment-216967711","issue_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/982","id":216967711,"user":{"login":"servocoder","id":1310273,"avatar_url":"https://avatars.githubusercontent.com/u/1310273?v=3","gravatar_id":"","url":"https://api.github.com/users/servocoder","html_url":"https://github.com/servocoder","followers_url":"https://api.github.com/users/servocoder/followers","following_url":"https://api.github.com/users/servocoder/following{/other_user}","gists_url":"https://api.github.com/users/servocoder/gists{/gist_id}","starred_url":"https://api.github.com/users/servocoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servocoder/subscriptions","organizations_url":"https://api.github.com/users/servocoder/orgs","repos_url":"https://api.github.com/users/servocoder/repos","events_url":"https://api.github.com/users/servocoder/events{/privacy}","received_events_url":"https://api.github.com/users/servocoder/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T19:01:26Z","updated_at":"2016-05-04T19:01:26Z","body":"I see, the main idea was to cache ContentType of an object, to read it later without extra HEAD request to S3. Perhaps there is another way to do this."}}