(req, res, next)
| 1 | import { defaultCacheControl } from './cache-control.js' |
| 2 | |
| 3 | export default function fastHead(req, res, next) { |
| 4 | const { context } = req |
| 5 | const { page } = context |
| 6 | if (page) { |
| 7 | // Since the *presence* is not affected by the request, we can cache |
| 8 | // this and allow the CDN to hold on to it. |
| 9 | defaultCacheControl(res) |
| 10 | |
| 11 | return res.status(200).send('') |
| 12 | } |
| 13 | next() |
| 14 | } |
nothing calls this directly
no test coverage detected