Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parse-cache-control

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-cache-control

Parse Cache-Control headers.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
991K
decreased by-12.87%
Maintainers
1
Weekly downloads
 
Created

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

FAQs

Package last updated on 19 Mar 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc