(req, res, next)
| 1 | import { setFastlySurrogateKey, SURROGATE_ENUMS } from './set-fastly-surrogate-key.js' |
| 2 | |
| 3 | export default function setStaticAssetCaching(req, res, next) { |
| 4 | if (isChecksummed(req.path)) { |
| 5 | setFastlySurrogateKey(res, SURROGATE_ENUMS.MANUAL) |
| 6 | } |
| 7 | return next() |
| 8 | } |
| 9 | |
| 10 | // True if the URL is known to contain some pattern of a checksum that |
| 11 | // would make it intelligently different if its content has changed. |
nothing calls this directly
no test coverage detected