Cloudflare DevelopersCD
Cloudflare Developers7mo ago
15 replies
Santho

Build cache not working in Astro static projects

We have a some projects in CF Pages using the same Astro static generation project.
Even the "Build cache" is enable in every project, the build logs says its not beeing used:
2025-06-26T15:22:55.845054Z    Using v2 root directory strategy
2025-06-26T15:22:55.87282Z    Success: Finished cloning repository files
2025-06-26T15:22:56.58822Z    No build output detected to cache. Skipping.
2025-06-26T15:22:56.588828Z    No dependencies detected to cache. Skipping.
2025-06-26T15:22:57.563263Z    Checking for configuration in a Wrangler configuration file (BETA)
2025-06-26T15:22:57.563916Z    
2025-06-26T15:22:57.565578Z    Found wrangler.toml file. Reading build configuration...
(...)
2025-06-26T15:25:49.991136Z    ✨ Upload complete!
2025-06-26T15:25:52.311179Z    Uploading to build output cache
2025-06-26T15:25:52.312274Z    Uploading to dependency cache
2025-06-26T15:25:52.316154Z    Failed to upload dependencies to build cache. Skipping.
2025-06-26T15:25:52.317851Z    Failed to upload build output to build cache. Skipping.
2025-06-26T15:25:57.581078Z    Success: Assets published!
2025-06-26T15:26:01.048343Z    Success: Your site was deployed!


I'm not sure why it cant use Build cache.
Our projects need to have some copy and move in folders in prebuild, according to the site/project that is being build. I dont know if it interferes in the build cache or whats happening.
What can i do so the build cache can be used?
Was this page helpful?