-
Notifications
You must be signed in to change notification settings - Fork 186
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
Use httpLastModified field for If-Modified-Since header on feed updates #2119
Use httpLastModified field for If-Modified-Since header on feed updates #2119
Conversation
90f5035
to
32bee4d
Compare
What would be an appropriate date for the first request to create a new feed. If I pass null to feed-io we get this date long ago send. But if I send the current date that might mean that we get a "ok nothing changed" back and in the end have no items? I haven't checked yet how it used to be done before.. |
Maybe something like "1 year ago" ? |
Yea one year ago could work. I checked how it used to be, a bit different to how this draft is developing of course but basically null was passed to feedio, and therefore no date and then whatever the default was. But if we would now use null, we end up with the same situation that feeds would block news for the strange date. |
8a9fba7
to
15959e5
Compare
15959e5
to
7ed0aff
Compare
Signed build 21.2.0-beta1 of this PR |
I'm currently testing this in my dev instance. And it seems to work fine. I imported all feeds from my normal prod instance added another one reported as problematic and no feed complained so far. Some favicon errors but that is normal. First updates also without errors. |
Ah and timestamp "one year ago" also send correctly :) tested with webhook.site |
Nice! 👍 |
… feed updates Signed-off-by: Robert Wunderer <robert.wunderer@caprisys.at>
88c90b9
to
4475d80
Compare
if timestamp is not set during creation of a feed use date one year ago code fixes and linting fixes. Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
6917696
to
2625c8c
Compare
Rebased the code and squashed some commits, I'm happy with the code and would merge it soon. I want to add some other features before making a new release, but I could create beta releases. |
Changed - Use httpLastModified field for If-Modified-Since header when fetching feed updates (#2119) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Changed - Use httpLastModified field for If-Modified-Since header when fetching feed updates (#2119) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
@SMillerDev I tested with git bisect and it seems that this PR started to break the integration test, the missing GUID is not throwing an exception anymore for some reason. I don't know why we missed that. |
Ok just found the cause ... |
Summary
Hand httpLastModified database field to FeedIo for setting If-Modified-Since header
Checklist