cache-control-parser
Advanced tools
+1
-1
| { | ||
| "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", |
+1
-3
@@ -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 @@ ``` |
11058
-0.28%183
-1.08%