Website update to newest version

Hi,

I did just wonder how to make my website update to the newest version of code, so people doesn’t have to click refresh to access the latest version. Thanks!

I am using cloudflare.

The only way I can think of that would make this work is if you have code on your website which continuously checks for updates and refreshes the page if the server tells them to. However, that also sounds like a great way to overload the server, so I can’t recommend implementing it on a production site.

Ok, thanks!

But how does all websites like minecraft.net, or all of the newspaper websites when they upload new content?

Thanks

@Freeranger said:
Ok, thanks!

But how does all websites like minecraft.net, or all of the newspaper websites when they upload new content?

Thanks

Most websites don’t: new website code only becomes effective after the page is refreshed.

For the few that can detect new code versions and request a reload, they built it themselves as well using technology more sophisticated than you’ll find on shared hosting.