Why I must refresh my page many times for my new code

sometimes, when i modify some code and refresh the page, but the page doesn’t show the new version, i must wait for some moment and refresh many times.
why?

the browser keeps a cached version, sometimes it thinks that you didnt change anything

you can use ctrl+F5 to force refresh that dont use cache