I have a node.js application with express which write html files, and sometimes update them. Is it a bad practice or breaking practice to write and read from the same file at the same time?
fs.writeFile(file_location,data)
res.sendFile(file_location)
The goal is to send the previously generated file before it updates.
Is it a bad practice to write the html data twice at the same time?