Skip to content

Fix HTTP cache for modified time when content is not modified#6723

Merged
Alkarex merged 1 commit intoFreshRSS:edgefrom
Alkarex:fix-304-touch
Aug 19, 2024
Merged

Fix HTTP cache for modified time when content is not modified#6723
Alkarex merged 1 commit intoFreshRSS:edgefrom
Alkarex:fix-304-touch

Conversation

@Alkarex
Copy link
Member

@Alkarex Alkarex commented Aug 19, 2024

Fix case when server is sending a new modified time while the content was not actually modified.
fix #6712

Fix case when server is sending a new modified time while the content was not actually modified.
fix FreshRSS#6712
@Alkarex Alkarex added this to the 1.24.2 milestone Aug 19, 2024
Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that fixes the linked issue as such, even my hypothesis about Retry-After is incorrect. But no matter. this behavior is clearly better regardless. 👍

The feed in question had plenty of updates after all, so this particular condition would've occurred only very few times, unless it purposefully kept changing the Last-Modified constantly even without updates.

@Alkarex
Copy link
Member Author

Alkarex commented Aug 19, 2024

Indeed, this PR is not related to Retry-After, and yes, the problematic condition is likely quite rare

@Alkarex Alkarex merged commit 673b530 into FreshRSS:edge Aug 19, 2024
@Alkarex Alkarex deleted the fix-304-touch branch August 19, 2024 17:10
@Alkarex
Copy link
Member Author

Alkarex commented Aug 19, 2024

Will have to be re-implemented in #4374 , FreshRSS/simplepie#11

@Alkarex Alkarex added the Bug (confirmed) 🐞 issues that are reproducible label Aug 19, 2024
Alkarex added a commit to FreshRSS/simplepie that referenced this pull request Aug 19, 2024
Alkarex added a commit to FreshRSS/simplepie that referenced this pull request Sep 8, 2024
* Hash-based caching
simplepie#401
FreshRSS/FreshRSS@9aab83a
FreshRSS/FreshRSS@00127f0

* Backport fix
FreshRSS/FreshRSS#6723

* A few fixes

* Reduce changes

* Reduce changes

* Relax some tests

* Fix comment

* Fix a few tests

* PHP 7.2 compatibility

* Behaviour fixes

* Simplification

* Comment

* Fix tests

* Remove debug logs

* Minor comment

* Fix type mess with $this->data['headers']
@Alkarex
Copy link
Member Author

Alkarex commented Sep 8, 2024

Help welcome to test this PR #4374

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug (confirmed) 🐞 issues that are reproducible SimplePie 🍰

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] bad IMS/INM values?

2 participants