dnt.ts 316 B

123456789101112131415
  1. import * as express from 'express'
  2. const advertiseDoNotTrack = (_, res: express.Response, next: express.NextFunction) => {
  3. if (!res.headersSent) {
  4. res.setHeader('Tk', 'N')
  5. }
  6. return next()
  7. }
  8. // ---------------------------------------------------------------------------
  9. export {
  10. advertiseDoNotTrack
  11. }