Hacker News new | ask | show | jobs
by ok123456 1485 days ago
if the page, limit and offset are parameters it is.
1 comments

If you query the first page with a limit of 10, then insert 10 items, do you get the same items with the same parameters?
Using that logic you can only have restful APIs if your application is useless and data never changes (which is fine for me, I hate debates about restfulness)
If you really want to cache the results use e-tags based on a hash set on write, or just include that hash as part of your request as well.