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

Add provider to cache content #25

Closed
Kaliumhexacyanoferrat opened this issue Sep 17, 2019 · 0 comments · Fixed by #171 or #174
Closed

Add provider to cache content #25

Kaliumhexacyanoferrat opened this issue Sep 17, 2019 · 0 comments · Fixed by #171 or #174
Labels
enhancement New feature or request
Milestone

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

Kaliumhexacyanoferrat commented Sep 17, 2019

As an operator of a web application I would like to leverage caching for specific content served by my application to improve latency and performance.

Example

var content = Resources.From(ResourceTree.FromDirectory("./"))
                       .Cached();

Host.Create()
    .Handler(content)
    .Run();

Acceptance criteria

  • The functionality is implemented as a concern in the Caching module
  • The implementation makes use of the caching infrastructure (see Add caching infrastructure #45)
  • By default, a file-based cache is used
  • The concern detects changes to cached responses to invalidate the cache
  • Responses are sent with a known content length instead of Transfer-Encoding: chunked
  • Acceptance tests have been added to ensure the functionality
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added enhancement New feature or request good first issue Good for newcomers labels Sep 17, 2019
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat changed the title Add layer for caching functionality Add provider to cache content Mar 3, 2020
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat removed the good first issue Good for newcomers label Sep 11, 2020
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added this to the Version 5.1 milestone Nov 24, 2020
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat linked a pull request Nov 24, 2020 that will close this issue
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat removed this from the Version 5.1 milestone Dec 1, 2020
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat removed a link to a pull request Dec 1, 2020
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat linked a pull request Jan 11, 2021 that will close this issue
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added this to the Version 5.2 milestone Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant