miniflux/internal
Scott Leggett bf1c851093 fetcher: use ETag as a stronger validator than Last-Modified
As per the MDN article on HTTP caching:

  During cache revalidation, if both If-Modified-Since and If-None-Match
  are present, then If-None-Match takes precedence for the validator.

  https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching

Previously Miniflux would consider a resource unmodified if the
Last-Modified header had not changed, even if the ETag had changed.

With this commit, Miniflux will consider a resource modified if the ETag
header has changed, even if Last-Modified has not.

This fixes Bug 1 in https://rachelbythebay.com/w/2024/06/11/fsr/
2024-07-02 22:05:49 -07:00
..
api Add global block and keep filters 2024-07-02 21:03:49 -07:00
cli cli: avoid misleading error message when creating an admin user 2024-03-23 14:32:55 -07:00
config options: add FETCH_NEBULA_WATCH_TIME 2024-05-02 16:30:01 -07:00
crypto Make use of HashFromBytes everywhere 2024-03-11 15:22:22 -07:00
database Add global block and keep filters 2024-07-02 21:03:49 -07:00
fever Rename PROXY_* options to MEDIA_PROXY_* 2024-03-20 21:28:28 -07:00
googlereader googelreader: set CrawlTimeMsec at the correct precision 2024-05-29 21:54:02 -07:00
http Make cookie duration dependent on configuration 2024-05-01 19:34:13 -07:00
integration Fix: Integration with Pinboard: Preserve Existing Bookmarks 2024-06-28 20:27:52 -07:00
locale Add global block and keep filters 2024-07-02 21:03:49 -07:00
mediaproxy Rename PROXY_* options to MEDIA_PROXY_* 2024-03-20 21:28:28 -07:00
metric Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
model Add global block and keep filters 2024-07-02 21:03:49 -07:00
oauth2 Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
reader fetcher: use ETag as a stronger validator than Last-Modified 2024-07-02 22:05:49 -07:00
storage Add global block and keep filters 2024-07-02 21:03:49 -07:00
systemd Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
template Add global block and keep filters 2024-07-02 21:03:49 -07:00
timezone timezone: make sure the tests pass when the timezone database is not installed on the host 2024-03-24 13:25:02 -07:00
ui Add global block and keep filters 2024-07-02 21:03:49 -07:00
urllib Use strings.EqualFold instead of strings.ToLower(…) == 2024-02-28 19:47:30 -08:00
validator Add global block and keep filters 2024-07-02 21:03:49 -07:00
version Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
worker Use modern for loops 2024-02-28 19:55:28 -08:00