Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

[WIP] http-cache middleware #15

Merged
merged 2 commits into from Jan 8, 2019
Merged

[WIP] http-cache middleware #15

merged 2 commits into from Jan 8, 2019

Conversation

mrkurt
Copy link
Member

@mrkurt mrkurt commented Jan 8, 2019

This adds basic HTTP caching middleware. Some limitations:

  • It won't cache any response with vary header
  • Requests with Authorization and Cookie headers also don't get cached

Still todo:

  • Make useful options API
  • Let people force a ttl
  • Figure out how to handle set-cookie headers on responses
  • Use responseCache under the covers

@mrkurt mrkurt merged commit 5d6d47a into master Jan 8, 2019
@mrkurt mrkurt deleted the http-cache-middleware branch January 8, 2019 23:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant