News for hackers. Stuff that matters.
Re:Problems with RESTful APIs (2015) by icebraining on Wednesday March 01, 2017 @08:08AM (#13763366)
Why do you need to distinguish between those? In fact, if the function is pure, why not run it on the client?
Re:Problems with RESTful APIs (2015) by int_19h on Wednesday March 01, 2017 @01:51PM (#13766921)
Because the server has more computational resources, for example. It's a very rare scenario in general, but it does happen.

Why distinguish? Because if you know that the results are not affected by server state, they can be cached much more aggressively.