mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(crawler) Be a bit more conservative about pulling etags and so on if the previous fetch wasn't OK
This commit is contained in:
parent
c5aab7e8db
commit
84563b0d46
@ -49,6 +49,9 @@ public record DocumentWithReference(
|
|||||||
if (null == doc)
|
if (null == doc)
|
||||||
return ContentTags.empty();
|
return ContentTags.empty();
|
||||||
|
|
||||||
|
if (doc.documentBody == null || doc.httpStatus != 200)
|
||||||
|
return ContentTags.empty();
|
||||||
|
|
||||||
String lastmod = doc.getLastModified();
|
String lastmod = doc.getLastModified();
|
||||||
String etag = doc.getEtag();
|
String etag = doc.getEtag();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user