lib/handler.js
function serve(res, file, maxAge) {
  log.debug(`Serving: ${ file }`)
  res.status(200)
    .set('Cache-Control', `max-age=${ maxAge }`)
    .sendFile(file, err => {
      if (err) {
        log.error(err)
        res.status(err.status).end()
        return
      }
    })
}
function serve(res, file, maxAge) {
  log.debug(`Serving: ${ file }`)
  res.status(200)
    .set('Cache-Control', `max-age=${ maxAge }`)
    .sendFile(file, err => {
      if (err) {
        log.error(err)
        res.status(err.status).end()
        return
      }
    })
}
function serve ( res , file , maxAge ) { log . debug ( ` ${ file } ` ) res . status ( 200 ) . set ( 'Cache-Control' , ` ${ maxAge } ` ) . sendFile ( file , err => { if ( err ) { log . error ( err ) res . status ( err . status ) . end ( ) return } } ) }
serves a cache file
serves a cache file