[Fixes #81221168] Refactor makeKey(file) to makeKey(req, file)