@flakey5/cache-control-parser
v1.0.0
Published
A RFC9111-compliant cache control header parser.
Downloads
3
Readme
cache-control-parser
A RFC9111-compliant cache control header parser.
Installing
npm install @flakey5/cache-control-parser
Usage
CJS
const { parseCacheControlHeader } = require('@flakey5/cache-control-header')
const directives = parseCacheControlHeader('max-age=10, must-revalidate')
ESM
import { parseCacheControlHeader } from '@flakey5/cache-control-header'
const directives = parseCacheControlHeader('max-age=10, must-revalidate')
License
This repository is licensed under the terms of the MIT License.