Does netlify clear cache every deploy?

Question is in the title. When I view a site after it was deployed, I can’t automatically see the changes although I already knew that I just needed to manually clear my cache. But my problem is my users can’t see those changes unless they clear their own cache. Is there a function here in Netlify that can help me with that?

No one can clear client-side cache. Netlify does add headers to updated assets that make the browsers think that the files have changed and thus, re-request them from the network instead of serving it from cache. If you have to manually clear cache, there are chances that you might be having a service worker that’s causing the problem.

1 Like

i wonder if you are using a service worker?

1 Like

oh thanks, it was the service worker. i turned it into a pwa before and i forgot to remove it. thanks!

1 Like