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
Implement a basic HTTP memory cache #4117
Closed
+941
−57
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3c0fb5a
Add a non-evicting, non-validating memory cache that keys on original…
jdm 197dc35
Doom cache entries based on the initial response, and prevent matchin…
jdm 5d95607
Evict cache entries that have passed their expiry date instead of mat…
jdm 9815deb
Document the cache. Refactor incomplete entries to lessen Option-itis.
jdm 1e70aa8
Revalidate expired cache entries instead of unconditionally evicting …
jdm 0a314d0
Forbid missing docs in cache code.
jdm 2208da3
Revalidate must-revalidate entries.
jdm a95d21b
Fetch content tests from a local HTTP server.
jdm 195d5f1
Track requests made to the test HTTP server.
jdm 09619f1
Add a simple test that a cached resource with no expiry is not revali…
jdm bcb6183
Fix incorrect revalidation logic that dropped the consumer channels o…
jdm 8c602bc
Ensure that requests are cached based on their request headers.
jdm 82a1a99
Run a separate http server instance for each test to avoid intermitte…
jdm 4ea0e05
Add a test for uncacheable responses.
jdm f3074f5
Address review comments.
jdm File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
So many procs :( Can we refactor this in the future (if not now, leave a FIXME)?