On Mon, Jan 18, 2010 at 18:32, Simon Gaeremynck <[email protected]> wrote:
> Downside of setting the Location header is that most client's will
> automatically retrieve their data.
> For example doing a GET request with jquery in firefox to /.infinity.json
> will automatically
> result in a second request to /.2.json

Ah, that might be considered good or bad ;-) In order to provide
against possible DOS attacks, generating a second request with the
maximum number allowed definitely creates too much unnecessary new
load. Maybe it's better then to keep it just as json array in the
body. A proper client would need to handle it manually anyway to get
all the json he wants, if there is a limit. For example, requesting
/.infinity.json or /.4.json where the limit is at /.2.json requires
him to fetch the content level-by-level anyway...

Regards,
Alex

-- 
Alexander Klimetschek
[email protected]

Reply via email to