Cloudflare DevelopersCD
Cloudflare Developersโ€ข3y agoโ€ข
3 replies
deniz

How can I prevent the deletion of old KV files when building with Workers?

Hello,
I am building my Vue application using Cloudflare Workers, and I am doing this using Wrangler. The files in the obtained build are stored as KV. The names of my files change according to the build, and when I get a new build, the existing KV values are deleted and replaced with new ones. Since the required files for each loaded page in my application are obtained from the server, users of the application encounter errors when old KVs are deleted.
I think, in order to solve this, the old build files should not be deleted from KV. How can I achieve this?
Was this page helpful?