I'm generating a huge .docx document in a rest-api call. It takes several minutes for it to complete. Problem is the server somehow sends a "timeout" after a minute or so. Is there anyway to increase this time? Is it a browser thing or can I change it in express?
exports.generateDoc = function(req, res){
var file = generateDoc(); //This takes several minutes
res.setHeader('Content-disposition', 'attachment; filename=output.docx');
res.end(file,'binary');
}