Socket
Socket
Sign inDemoInstall

http-cache-semantics

Package Overview
Dependencies
0
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.7.1 to 3.7.3

node4/index.js

4

index.js

@@ -100,3 +100,3 @@ 'use strict';

// the response status code is understood by the cache, and
understoodStatuses.includes(this._status) &&
understoodStatuses.indexOf(this._status) !== -1 &&
// the "no-store" cache directive does not appear in request or response header fields, and

@@ -117,3 +117,3 @@ !this._rescc['no-store'] &&

// has a status code that is defined as cacheable by default
statusCodeCacheableByDefault.includes(this._status)
statusCodeCacheableByDefault.indexOf(this._status) !== -1
));

@@ -120,0 +120,0 @@ }

{
"name": "http-cache-semantics",
"version": "3.7.1",
"version": "3.7.3",
"description": "Parses Cache-Control and other headers. Helps building correct HTTP caches and proxies",
"main": "index.js",
"repository": "https://github.com/pornel/http-cache-semantics.git",
"main": "node4/index.js",
"scripts": {
"test": "mocha"
"compile": "babel -d node4/ index.js; babel -d node4/test test",
"prepublish": "npm run compile",
"test": "npm run compile; mocha node4/test"
},
"files": [
"node4/index.js",
"index.js",

@@ -17,4 +20,6 @@ "test"

"devDependencies": {
"babel-cli": "^6.24.0",
"babel-preset-env": "^1.3.2",
"mocha": "^3.2.0"
}
}

@@ -1,2 +0,2 @@

# Can I cache this?
# Can I cache this? [![Build Status](https://travis-ci.org/pornel/http-cache-semantics.svg?branch=master)](https://travis-ci.org/pornel/http-cache-semantics)

@@ -3,0 +3,0 @@ `CachePolicy` tells when responses can be reused from a cache, taking into account [HTTP RFC 7234](http://httpwg.org/specs/rfc7234.html) rules for user agents and shared caches. It's aware of many tricky details such as the `Vary` header, proxy revalidation, and authenticated responses.

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