1.0.0 • Published 10 months ago

@flakey5/cache-control-parser v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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.

1.0.0

10 months ago