How can I configure the list of cached resources at build time? #7299
-
Questionhttps://vercel.com/docs/deployments/troubleshoot-a-build#understanding-build-cache says:
So, if I have the Framework Preset
Also in the same documentation there are several ways to completely disable the build cache during build. But, can I partially disable cached items? For example, disable cache only of In other words, can I configure the list to cache resources myself? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @dartess! Unfortunately, it's currently not possible to partially disable cached items or customize the list of cached resources based on the Framework Preset in Vercel. I'd love to understand what you're trying to do here. What is the benefit that you see of partially disabling cached items? |
Beta Was this translation helpful? Give feedback.
-
From time to time (rarely, but still) we get a broken build for an unknown reason, and rebuilding with the cache disabled fixes. The last time a cache problem concerned a third-party plugin, which did not coordinate its behaviour with the Next caching mechanism. This time it is not a problem with Next itself, but we were forced to disable caching. So I was looking for an option to disable |
Beta Was this translation helpful? Give feedback.
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
Hi @dartess!
Unfortunately, it's currently not possible to partially disable cached items or customize the list of cached resources based on the Framework Preset in Vercel.
I'd love to understand what you're trying to do here. What is the benefit that you see of partially disabling cached items?