On Sun, Mar 23, 2008 at 7:56 PM, Ian Clarke <[EMAIL PROTECTED]> wrote:
> When is it appropriate to use a query string to pass parameters to a
>  REST API call?
>
>  For example, why is:
>   http://blah/user/1234
>  better than:
>   http://blah/user?id=1234
>  ?

It depends on what you're doing.

One of the biggest reasons to use the "pure" version is that that is
fully cachable. I.e., using GET parameters triggers often non-obvious
caches and crawlers -- the simplest being that many of them won't
cache URLs with parameters.

Have fun,
John

Reply via email to