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

Support E-Tag cache feature with local file storage (or DB) #33

Open
DevTchernov opened this issue Sep 10, 2020 · 1 comment
Open

Support E-Tag cache feature with local file storage (or DB) #33

DevTchernov opened this issue Sep 10, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@DevTchernov
Copy link

  • store 'GET' requests results by full URL and E-Tag value on file system
  • allow to load response from cache by E-Tag resolving
  • allow to force load response from cache (in offline f.e.)
@Alex009 Alex009 added this to the 0.9.0 milestone Sep 11, 2020
@Alex009 Alex009 self-assigned this Sep 11, 2020
@Alex009 Alex009 added the enhancement New feature or request label Sep 11, 2020
@Alex009
Copy link
Member

Alex009 commented Sep 16, 2020

@DevTchernov ktor already have feature HttpCache with correct E-Tag caching out-of-box
use: install(HttpCache) in HttpClient and it will work.

also you can save cache to disk by implementing own HttpCacheStorage class https://api.ktor.io/1.4.0/io.ktor.client.features.cache.storage/-http-cache-storage/index.html

@Alex009 Alex009 removed this from the 0.9.0 milestone Jan 21, 2021
@Alex009 Alex009 removed their assignment Mar 3, 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
Status: No status
Development

No branches or pull requests

2 participants