(crawler) Be a bit more conservative about pulling etags and so on if the previous fetch wasn't OK

This commit is contained in:
Viktor Lofgren 2023-12-25 00:55:05 +01:00
parent c5aab7e8db
commit 84563b0d46

View File

@ -49,6 +49,9 @@ public record DocumentWithReference(
if (null == doc)
return ContentTags.empty();
if (doc.documentBody == null || doc.httpStatus != 200)
return ContentTags.empty();
String lastmod = doc.getLastModified();
String etag = doc.getEtag();