Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not let the client cache future requests
Imagine we have a client whose clock is in the future. Then when it makes a request in which the end timestamp is in the future and we cache it, the next client who makes a request for the same timestamp will get the cached version. But since the cached data is much older there is a chance meanwhile there will be changes and we will serve the wrong data.
- Loading branch information
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters