-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved synchronization of cache with remote in retrieve* functions.
- Delete files that are no longer present in the remote directory. - Always perform HEAD requests to check for updates to individual files. This allows us to simplify the code by removing the updateDelay for files, which was incorrect anyway as the delay was being computed from the file's modification time rather than its last HEAD check. - Don't throw an error when the HEAD fails, to ensure we can still use the cache if the request fails, e.g., due to lack of connectivity. - Bugfix for parsing the modification time from the headers.
- Loading branch information
Showing
4 changed files
with
60 additions
and
19 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
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