-
Notifications
You must be signed in to change notification settings - Fork 124
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
Caching partial content #246
Comments
I guess it is that time of the year: I was just referred to cachecontrol in my quest for a caching http proxy with range requests support. Got inspired by seeing how |
Caching big files is not one of cachecontrol's strong suites at the moment. See #238. I'm working towards improving the situation (#240), but the progress is slow: I want to branch by abstraction, but my latest PR (#247) is stuck in the pipe. At the moment the API that abstracts out the storage in cachecontrol (on master) looks like this class Cache:
def get(self, key: str) -> bytes:
...
def set(self, key: str, value: bytes, expires=None) -> None:
...
def delete(self, key: str) -> None:
...
def close(self) -> None:
... The key is derived from the URL and there is only one key per cached request. As you can see caching big files will require changing the API - you can't store the entire contents of a file in a single Would you like to join forces and discuss the possible solutions to both problems? Keep in mind that the current holdup is @ionrock rather than the shortage of my time. |
If you have a practical problem that you want to solve ASAP I suggest dropping ionrock/cachecontrol in favor of a caching proxy that already implements partial content and large file support. |
@hexagonrecursion any suggestions? There don't seem to be a lotta options. |
@shreyasminocha Sorry. I have no clue either. |
Would love to be able to cache partial content.
The text was updated successfully, but these errors were encountered: