Cloudflare Workers SPA - Caching problem

Hello, I use workers for my Vue.JS app, everything works fine, but when I push new changes the clients don’t get those changes everything is cached, I have to refresh and use a Private Window to view the changes. Some times this happen for weeks.

What can I do to avoid this?

Maybe I have to user some expire headers, I know how to do it in nginx, but I have no idea how to do that on Workers.

Thanks

1 Like

Hey @marcosa,
The Cache API might be the solution for your problem.

Try also to purge everything from the web interface.