Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds x-cache headers for hit/miss info, lots o bug fixes #11

Merged
merged 16 commits into from
Feb 10, 2022

Conversation

06chaynes
Copy link
Owner

  • Adds x-cache and x-cache-lookup headers for cache hit/miss info
  • Forces request method to uppercase in cache keys (breaking change)
  • Extends several existing tests and adds new tests to help verify functionality
  • Fixes issues when a conditional response has a 200 status, including updated response on revalidation and a response with a no-cache directive for example
  • Fixes issue related to deleting an existing cache record on a non GET/HEAD method request to a previously cached resource

…delete the cache record when a request is made to the same resource that was not using the GET or HEAD method (required forcing case on method to properly build key), added test to verify the cache record gets deleted in this situation
…ng responses with no-cache to return the cache response rather than the conditional response. added check for existing record before delete attempt in case the manager implementation returns an Err on attempt to delete a non-existent record
…hange, plus new header feature, version bumps for everyone
…miss on 200, fixed the 304 test as it should return a HIT for x-cache
…se to it's own block, now returning the conditional response and generating a new policy based on that response before caching the updated data, added corresponding test because I sure do like my tests mmmhhhhmm
@06chaynes 06chaynes merged commit cb1c153 into latest Feb 10, 2022
@06chaynes 06chaynes deleted the x-cache-headers branch February 10, 2022 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant