When infer_extension is not set ActionCachePath does not set the extension from any explicitly specified format, and hence expiry produces cache keys which don't have any extension and don't match the keys generated when the cache entry was created.