Avoid downtime by generating the next version of the HTML & JSON in a separate file, and then using atomic file system operations.