Rest Standard: Path parameters or Request parameters

Paths tend to be cached, parameters tend to not be, as a general rule.

So…

GET /customers/bob

vs

GET /customers?name=bob

The first is more likely to be cached (assuming proper headers, etc.) whereas the latter is likely not to be cached.

Leave a Comment