perf: Use cache for all remote resources

This commit is contained in:
Peng-YM
2022-07-11 20:46:16 +08:00
parent 848491c0f8
commit 6881148021
10 changed files with 482 additions and 39 deletions

View File

@@ -7,3 +7,5 @@ export const RULES_KEY = 'rules';
export const GIST_BACKUP_KEY = 'Auto Generated Sub-Store Backup';
export const GIST_BACKUP_FILE_NAME = 'Sub-Store';
export const ARTIFACT_REPOSITORY_KEY = 'Sub-Store Artifacts Repository';
export const RESOURCE_CACHE_KEY = '#sub-store-cached-resource';
export const CACHE_EXPIRATION_TIME_MS = 5 * 60 * 1000;