-
Notifications
You must be signed in to change notification settings - Fork 123
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
Setting max-age on the response causes cachecontrol to fail with exception about 'expires' argument #262
Comments
CC @ionrock I suspect this one is straightforward, but am not sure if there's any other supporting information needed here? (other library versions etc) |
@svanoort I'm not able to reproduce this in a test with the headers you mentioned. Do you mind sending the actual response headers? Also, are you using any heuristics or a custom cache implementation? |
@svanoort what backend are you using? Using diskcache's FanoutCache here and had to shim it:
Or can just pop and drop it to not expire in the backend |
I'm testing new release with |
I'm having the same issue with PR #233 This PR breaks those of us who use
However, neither of those accepts an See also #109 which I appear to have opened a few years ago. 😁 An alternative referenced there is https://github.com/tox-dev/py-filelock.git - which also does not support the concept of expiry. |
i don't know when this was introduced, but this also causes a regression in feed2exec: https://gitlab.com/anarcat/feed2exec/-/issues/22 basically, the i patched it with: https://gitlab.com/anarcat/feed2exec/-/commit/c5563d093cfd6e86123438cacee9358ac491cbc7.patch but it would be nice to have a little heads up for things like this. :) |
oh, and thanks for implementing this feature, quite nice! |
Applies to cachecontrol 0.12.7 and probably 0.12.8
When we have a response with following header:
'Cache-Control': 'public, max-age=1'
I believe this may be related to this PR: #233
We get the following exception from
cachecontrol
:The text was updated successfully, but these errors were encountered: