miniflux/internal/reader/fetcher
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
..
encoding_wrappers.go reader/fetcher: add brotli content encoding support 2024-04-19 10:50:46 -07:00
request_builder.go Request builder: Allow the use of insecure TLS ciphers when Allow self-signed or invalid certificates is used 2024-06-13 20:23:37 -07:00
response_handler.go fetcher: use ETag as a stronger validator than Last-Modified 2024-07-02 22:05:49 -07:00
response_handler_test.go fetcher: add tests for IsModified behaviour 2024-07-02 22:05:49 -07:00