🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

cache-control-parser

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-control-parser - npm Package Compare versions

Comparing version
2.0.4
to
2.0.5
+1
-1
package.json
{
"name": "cache-control-parser",
"version": "2.0.4",
"version": "2.0.5",
"description": "A humble cache-control parser",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/etienne-martin/cache-control-parser",

@@ -70,8 +70,6 @@ # cache-control-parser

const cacheControl = parse(
const { "max-age": maxAge, "s-maxage": ttl = maxAge } = parse(
"max-age=300, s-maxage=0"
);
const ttl = cacheControl["s-maxage"] ?? cacheControl["max-age"];
console.log("ttl:", ttl);

@@ -78,0 +76,0 @@ ```