kaazing / http2-cache.js

2 stars 11 forks source link

Uncacheable responses do not invalidate existing cache #53

Closed tejaede closed 7 years ago

tejaede commented 7 years ago

Steps:

  1. Acquire JWT
  2. Poll get_hazards with JWT
  3. Cache valid responses as they arrive
  4. JWT expires
  5. Skip caching as the responses have an uncacheable status code.

Expected: The cache is invalidated. If it's the result of a client request, the uncacheable response is returned to the application layer. If it's a push promise, the next client request goes to the accelerator. Actual: If a cache exists, the application receives it in perpetuity.

hthetiot commented 7 years ago

See #55