how to use opt.setHeaders in koa-send?

46 Views Asked by At

The document said "You should only use the setHeaders option when you wish to edit the Cache-Control or Last-Modified headers, because doing it before is useless (it's overwritten by send), and doing it after is too late because the headers are already sent.". but why it will be overwritten by res.send? can anyone give a example?

0

There are 0 best solutions below