hotsh/rstat.us — pull request #517 by clnclarinet (2012-02-27 19:36:30+00:00)
Title: Issue 506 - limit updates returned to hubs by If-Modified-Since if specified, otherwise 20

@wilkie and @steveklabnik, I'd really appreciate if you could take a look at this sometime in the next week or so.

I've implemented the respecting of the If-Modified-Since header and returning a max of 20 updates if that header isn't specified, but I'm wondering:

* Am I doing this right?
* Are there other headers that the comment "TODO: Abide by headers that supply cache information" is referring to that should be done as well?
* When If-Modified-Since is specified and there are no updates since then, should we render the atom without any entries or should we return status 304 Not Modified?
* Is there anything else we should be doing in order to protect ourselves against the resource hogging attacks mentioned by @zoowar in issue #506?