Hacker News new | ask | show | jobs
by Joker_vD 5 days ago

    Unlike POST, however, the method is explicitly safe and idempotent, allowing
    functions like caching and automatic retries to operate.
2 comments

Yes. That is what the spec says. However, if the search query is expensive you need some form of caching. Either on the endpoint itself caching the data, or the mechanism with location to redirect to the location of the result.
Putting something in a spec does not automatically make it true. In the real world if you repeat expensive queries more than an undefined amount you get blocked or at least bot-checked.
From the browser POV it doesn't need to ask if you want to re-send data.
Putting something in a spec does not automatically make it true.

Terrible news for computing.

The point is that you need to take care to make the implementation of that endpoint safe. It isn’t safe magically by itself.
Great, got it. I'll update my running "how computing works" chart with this new information:

  | implementation = reality | magic  |
  |-----------------------------------|
  | 999,999,999,971 (+1)     | 0      |