check if it is a cached file or a version to resolve the correct path to the file key