{"action":"created","issue":{"url":"https://api.github.com/repos/fguillot/picoFeed/issues/279","repository_url":"https://api.github.com/repos/fguillot/picoFeed","labels_url":"https://api.github.com/repos/fguillot/picoFeed/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/fguillot/picoFeed/issues/279/comments","events_url":"https://api.github.com/repos/fguillot/picoFeed/issues/279/events","html_url":"https://github.com/fguillot/picoFeed/issues/279","id":165954282,"number":279,"title":"getEtag() and getLastModified() never return anything","user":{"login":"krakrock","id":12855746,"avatar_url":"https://avatars.githubusercontent.com/u/12855746?v=3","gravatar_id":"","url":"https://api.github.com/users/krakrock","html_url":"https://github.com/krakrock","followers_url":"https://api.github.com/users/krakrock/followers","following_url":"https://api.github.com/users/krakrock/following{/other_user}","gists_url":"https://api.github.com/users/krakrock/gists{/gist_id}","starred_url":"https://api.github.com/users/krakrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krakrock/subscriptions","organizations_url":"https://api.github.com/users/krakrock/orgs","repos_url":"https://api.github.com/users/krakrock/repos","events_url":"https://api.github.com/users/krakrock/events{/privacy}","received_events_url":"https://api.github.com/users/krakrock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-17T00:43:58Z","updated_at":"2016-07-18T20:46:15Z","closed_at":null,"body":"I have the following code:\r\n\r\n```\r\n    try {\r\n        $reader = new Reader;\r\n\r\n        $resource = $reader->download('http://rss.cnn.com/rss/cnn_world.rss?format=xml');\r\n\r\n        $parser = $reader->getParser(\r\n            $resource->getUrl(),\r\n            $resource->getContent(),\r\n            $resource->getEncoding()\r\n        );\r\n\r\n        $feed = $parser->execute();\r\n\r\n        $etag = $resource->getEtag();\r\n        $last_modified = $resource->getLastModified();\r\n\r\n        echo $etag;\r\n        echo $last_modified;\r\n    }\r\n    catch (PicoFeedException $e)\r\n    {\r\n        echo $e;\r\n    }\r\n```\r\n\r\nBut `getEtag()` and `getLastModified()` never returned anything. I've tried this with RSS feeds from CNN, NYT, LATimes, USAToday, WPO, etc.\r\n\r\nWhat's wrong?"},"comment":{"url":"https://api.github.com/repos/fguillot/picoFeed/issues/comments/233453340","html_url":"https://github.com/fguillot/picoFeed/issues/279#issuecomment-233453340","issue_url":"https://api.github.com/repos/fguillot/picoFeed/issues/279","id":233453340,"user":{"login":"joshas","id":79141,"avatar_url":"https://avatars.githubusercontent.com/u/79141?v=3","gravatar_id":"","url":"https://api.github.com/users/joshas","html_url":"https://github.com/joshas","followers_url":"https://api.github.com/users/joshas/followers","following_url":"https://api.github.com/users/joshas/following{/other_user}","gists_url":"https://api.github.com/users/joshas/gists{/gist_id}","starred_url":"https://api.github.com/users/joshas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshas/subscriptions","organizations_url":"https://api.github.com/users/joshas/orgs","repos_url":"https://api.github.com/users/joshas/repos","events_url":"https://api.github.com/users/joshas/events{/privacy}","received_events_url":"https://api.github.com/users/joshas/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T20:46:15Z","updated_at":"2016-07-18T20:46:15Z","body":"Your code returns correct Etag and LastModified values with picoFeed version v0.1.23. Maybe you are getting status code 304 Not Modified? In that case Etag and LastModified values are not returned in headers."}}
{"actor":{"display_login":"joshas"}}