API Design · Junior · Question 29 of 75
Why should a pagination cursor be opaque to clients?
- 1Because cursors must be encrypted by law
- 2Because clients can't read strings
- ✓Correct answer: So the server can change how it's built (e.g. which fields it encodes) without breaking clients
Explanation
Clients should only pass back what they received, typically a Base64-encoded value.