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 response attribute to indicate when content changes #744
Comments
I think what you're describing is best handled by conditional requests. For any servers that support it, requests-cache will send a conditional request, and if the remote content hasn't changed, Otherwise, |
Another relevant piece of info: in 1.0 (beta), there is now also a I'll close this issue for now, but let me know if you have any other questions. |
Well, working with scrapers I find it hard to imagine a use case when knowing if the content has actually changed is irrelevant: if a response content has not changed since the last process, I can avoid reprocessing it and that's a great improvement by itself. An attribute like |
I see. Adding a new attribute would be reasonable. I'll keep this open, then. |
Hi,
if a cached page expires and a new one is fetched it would be interesting to know if the new content differs from the cached one.
In my own view,
from_cache
response attribute should beTrue
if the page content has not changed, regardless whether the cache had expired and a new page was fetched or not.What do you think about?
The text was updated successfully, but these errors were encountered: