Skip to content

Add support for conditional requests with ETag and Last-Modified headers #79

@JWCook

Description

@JWCook

Quick summary of how this would work:

  • If a cached response contains an ETag header, add an If-None-Match header to the new request
  • If a cached response contains a Last-Modified header, add an If-Modified-Since header to the new request
  • If a 304 Not Modified response is received, return the cached response and update expiration and headers (if changed)
  • If a 200 response is received, update the cache and return the new response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions