News for hackers. Stuff that matters.
Re:Use links not keys to represent relationships in APIs by barrkel on Sunday May 12, 2019 @05:31AM (#19890962)
It's an API. The client isn't likely to be a browser. If it's integrating with another system, those links may have quite a long life.
Re:Use links not keys to represent relationships in APIs by randallsquared on Sunday May 12, 2019 @09:14AM (#19891663)
Caching behavior is not only about browsers.
Re:Use links not keys to represent relationships in APIs by barrkel on Sunday May 12, 2019 @09:49AM (#19891872)
For sure, but for most people using APIs to integrate with systems, caching is an unwanted middle way between always fresh and stored persistent, where local storage is the "cache", except it isn't invalidated using HTTP logic.
Re:Use links not keys to represent relationships in APIs by jayd16 on Sunday May 12, 2019 @06:21PM (#19894955)
>except it isn't invalidated using HTTP logic.

You should be doing this. It helps a lot, actually.