IIS webpage for viewing updating png with semaphore

im really new to web development and html. But with a bit of research I’ve managed to create a website with IIS that shows a png file that is created by another PC on network and constantly updated. The problem i have is how to implement a semaphore solution to not get any errors when multiple people opens this png and the other PC is constantly deleting old png->creating new with same name.

Right now i just use 1 hmtl file. But how do i store a semaphore variable that I can store on the webserver? As I just figured out that html is ran client side.