-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(refresh): force assets to refresh via Lookup (#23)
Previously it was entirely possible for `ReadAll` to be repeatedly invoked without refreshing the assets, since `Lookup` only `.get` instead of `.refresh()`. Since there is a refresh threshold now, it is better to do a refresh if the threshold has exceeded, to prevent issues with asset of similar name being deleted and re-added, or if the asset is removed all together, which can be detected at the filesystem level instead. Also fix when status code is non-200 to return as error instead. Allow the refresh threshold to be specified as arg, though it defaults to the current 30 seconds.
- Loading branch information
Showing
3 changed files
with
25 additions
and
43 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