Skip to content

Commit 49924d5

Browse files
committed
Expiry issues
1 parent 7097fd9 commit 49924d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plugins/core/core/src/software/aws/toolkits/core/utils/RemoteResourceResolver.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ class DefaultRemoteResourceResolver(
3232
private fun internalResolve(resource: RemoteResource): Path {
3333
val expectedLocation = cacheBasePath.resolve(resource.name)
3434
val current = expectedLocation.existsOrNull()
35-
if (current != null && !isExpired(current, resource)) {
36-
LOG.debug { "Existing file ($current) for ${resource.name} is present and not expired - using it." }
37-
return current
35+
if (resource.name != "notifications.json") {
36+
if ((current != null && !isExpired(current, resource))) {
37+
LOG.debug { "Existing file ($current) for ${resource.name} is present and not expired - using it." }
38+
return current
39+
}
3840
}
3941

4042
LOG.debug { "Current file for ${resource.name} does not exist or is expired. Attempting to fetch from ${resource.urls}" }

0 commit comments

Comments
 (0)