-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: validate that cached files on disk are fresh (#85)
If a logged-in user generated a file, LAST_TIME_RENDERED was set, but the cache on disk is not written. Now if there was an older version of the cache still on disk, on next request from a visitor that is not logged-in, the old cache would be served. Validate that the time set in LAST_TIME_RENDERED is in fact also the time of the cache-file on disk. If not, the file on disk is stale and a new page should be rendered.
- Loading branch information
Showing
2 changed files
with
29 additions
and
20 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
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