Repository navigation
web fetch: https://example.com returns r.jina.ai's stale cached snapshot, not the page - #1915
Draft
ZeroPoint95 wants to merge 1 commit into
Draft
ZeroPoint95 wants to merge 1 commit into
ZeroPoint95 wants to merge 1 commit into
Conversation
…ectly r.jina.ai serves its 3600s page cache by default, so codeaf web fetch returned Jina's stale snapshot of a page — with its own cached-snapshot warning — instead of the page. The fetch now sends the reader's no-cache header and, when the answer is still marked a cache hit (X-Cache: HIT), discards it and GETs the target directly, stripping the HTML to text. Fixes #1771 Assisted-by: CodeAF (deepseek-v4-flash-latest) Co-Authored-By: CodeAF <267109073+agentfield-bot@users.noreply.github.com>
santoshkumarradha
force-pushed
the
dev
branch
from
October 24, 2026 21:53
a2f0486 to
d68bcf8
Compare
santoshkumarradha
force-pushed
the
zeropoint95/1771-web-fetch-https-example-com-returns-r-ji
branch
from
October 24, 2026 21:54
7a4c722 to
eceb873
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
codeaf web fetch https://example.comreturned the real page rather than the stale cache.Closes #1771.
Validation
cd . && go test -count=1 ./internal/search/.cd . && go test -count=1 -run 'TestJina' -v ./internal/search/ 2>&1 | grep -E '^(=== RUN|--- (PASS|FAIL)|PASS|FAIL|ok)' ; echo "PIPE_EXIT:${PIPESTATUS[0]}".cd . && go test -count=1 -race ./internal/search/.by codeaf factory
Factory-Approval: evt_b7b18ebb @ZeroPoint95 7a4c722