The caching support is mostly the same. Both Earthly and Dockerfile are BuildKit frontends. BuildKit provides the caching mechanisms.
A possible exception is the "auto skip" feature for Earthly Cloud, since I do not know how that is implemented.
A possible exception is the "auto skip" feature for Earthly Cloud, since I do not know how that is implemented.
That can extend beyond just producing docker iamges as well. Under the covers the CACHE keyword is how lib/rust in Earthly makes building Rust artifacts in CI faster.