Cloudflare workers build cache question

Re Host on Cloudflare.

What should be cached here? I checked the deployment logs and the dependencies are installed and the site is cold-built on every deployment (even with cache enabled in every project settings).

Restoring from dependencies cache
Restoring from build output cache
Detected the following tools from environment: npm@10.9.2, nodejs@22.16.0
Success: Build output restored from build cache.
Success: Dependencies restored from build cache.
SKIP_DEPENDENCY_INSTALL is present in environment. Skipping automatic dependency installation.
Uploading to build output cache
Success: Build output uploaded to build cache.
[custom build] Installing Hugo 0.163.3...
[custom build] Installing Node.js 25.6.0...
...
[custom build] Building the site...
[custom build] Start building sites …
...
Total in 91540 ms

cc @jmooring.

See file caches.

These are the files that Hugo caches to disk. If a cache has its dir parameter set to something beginning with the :cacheDir token, then the documented Cloudflare setup will cache those files.

The biggest wins for most sites are image and module caching.

Note that Cloudflare evicts the cache 7 days after last access:
https://developers.cloudflare.com/workers/ci-cd/builds/build-caching/#limits

[caches]
  [caches.getresource]
    dir                     = ":cacheDir/:project"
    maxAge                  = "12h"
  [caches.images]
    dir                     = ":resourceDir/_gen"
    maxAge                  = "1440h"
  [caches.assets]
    dir                     = ":resourceDir/_gen"
    maxAge                  = -1

I have that configured. Build times didn’t change much (fluctuates between same time as before or 30 seconds less)

https://gohugo.io/host-and-deploy/host-on-cloudflare/#step-3

I missed that step! Build time now just 40 seconds!