Socket
Socket
Sign inDemoInstall

parse-cache-control

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-cache-control

Parse Cache-Control headers.


Version published
Maintainers
1
Weekly downloads
1,574,866
decreased by-8.12%

Weekly downloads

Package description

What is parse-cache-control?

The parse-cache-control npm package is designed to parse the value of the HTTP 'Cache-Control' header. It returns an object representing the directives and their respective values, making it easier to interpret and utilize cache control settings within an application.

What are parse-cache-control's main functionalities?

Parsing Cache-Control Header

This feature allows you to parse the 'Cache-Control' header string from an HTTP response and convert it into a JavaScript object. Each directive in the header is represented as a key in the resulting object, with its value being the directive's value or true if the directive has no value.

{"Cache-Control": "public, max-age=3600"}

Other packages similar to parse-cache-control

Readme

Source

parse-cache-control

Simple function to parse Cache-Control headers. Taken from Wreck.

See test.js for usage.

FAQs

Last updated on 19 Mar 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc