🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

is-cacheable

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

is-cacheable

Check whether or not a HTTP response is cacheable

1.0.1
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

is-cacheable

Build Status js-standard-style

Check whether or not a HTTP response is cacheable based in its headers.

Usage

var isCacheable = require('is-cacheable')
var request = require('request')

request('http://example.com', function (err, res, body) {
  console.log('Is response cacheable?', isCacheable(res.headers))
})

Contributing

is-cacheable is an OPEN Open Source Project. This means that:

Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.

See the contribution guide for more details.

Contributors

Phillip JohnsenGitHub/phillipjTwitter/@phillipjohnsen

Credits

Got lots of inspiration from https://github.com/kevinswiber/request-caching

License

Copyright © 2015 is-cacheable contributors.

is-cacheable is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.

Keywords

request

FAQs

Package last updated on 26 Sep 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