Build cache ignored for eleventy deployments

For Workers & Pages, what is the name of the domain?

sebduggan-uk.pages.dev

What is the issue or error you’re encountering

Neither the dependency cache or build cache are being picked up on subsequent builds

What steps have you taken to resolve the issue?

Tried disabling and re-enabling the build cache setting.

What are the steps to reproduce the issue?

I have build caching turned on for an Eleventy site. When I run the deployment, the end of the log reports:

10:00:49.722 Uploading to dependency cache
10:00:49.727 Uploading to build output cache
10:00:50.019 Success: Build output uploaded to build cache.
10:00:51.090 Success: Dependencies uploaded to build cache.

But then on subsequent deployments, it seems to get the dependencies and cached build items all over again, not from the cache.

The site is set up as an Eleventy site, and the build assets are cached into the .cache directory, which CF says is automatically used for Eleventy projects.

On subsequent deployments, I get the following near the top of the log:

10:02:56.496 Using v2 root directory strategy
10:02:56.518 Success: Finished cloning repository files
10:02:57.246 No build output detected to cache. Skipping.
10:02:57.247 No dependencies detected to cache. Skipping.

This topic was automatically closed after 15 days. New replies are no longer allowed.