Might want to move this below the cache lookup, so that we don't pay the cost for the `getResourceVersions()` call if there is a cache hit.