List files causing a GitHub Actions cache miss

Hi,
is there any way to understand which files are causing a cache miss? I am trying to cache the Gradle’s JDKs in .gradle/jdks/ (I am using the new toolchains introduced with a recent version of Gradle). This causes unexpected cache hits, and I’d like to understand which are the files whose change is triggering an unexpected miss.

By the way, I think that this debug tool would be useful in general.