kaazing / http2-cache.js

2 stars 11 forks source link

Should properly honor request cache invalidators #47

Closed dpwspoon closed 6 years ago

dpwspoon commented 7 years ago
Cache-Control: must-revalidate
Cache-Control: no-cache
Cache-Control: no-store
Cache-Control: no-transform
Cache-Control: public
Cache-Control: private
Cache-Control: proxy-revalidate
Cache-Control: max-age=<seconds>
Cache-Control: s-maxage=<seconds>
dpwspoon commented 7 years ago

Note, http2-cache.js is a client cache so...

s-maxage is the same as max-age (we can take the greater value if both appear, I believe).

proxy-revalidate and private/public also have no effect (I believe, please confirm in spec)

hthetiot commented 6 years ago

https://github.com/kaazing/http2-cache.js/commit/790499856a7cffeb2a024dd0121a93277943aedb https://github.com/kaazing/http2-cache.js/commit/8426adc7e0a49e58eb9557fc9bb86c4cecd0bb8c