kornelski / http-cache-semantics

RFC 7234 in JavaScript. Parses HTTP headers to correctly compute cacheability of responses, even in complex cases
http://httpwg.org/specs/rfc7234.html
BSD 2-Clause "Simplified" License
244 stars 27 forks source link

Is there a way to specify cache codes default? #31

Open adityapatadia opened 4 years ago

adityapatadia commented 4 years ago

I see there is an array statusCodeCacheableByDefault in code but is it possible to specify our own list?

kornelski commented 4 years ago

These codes are defined by the RFC, and aren't customizable.