-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
What
Support conditional HTTP fetching so agents can efficiently poll pages without re-downloading unchanged content.
Approach
- Add
etagandlast_modifiedtoFetchResponse(already havelast_modified) - Add
if_none_match(ETag) andif_modified_sincefields toFetchRequest - When server returns 304 Not Modified, return response with
status_code: 304and no content - Return
etagheader value in response for future conditional requests
Why
Agents frequently re-fetch the same URLs in loops. Conditional fetching avoids re-downloading and re-processing unchanged pages.
Acceptance criteria
- New request fields:
if_none_match,if_modified_since - New response field:
etag - 304 responses handled correctly (no content, no conversion)
- Tests with wiremock covering conditional request/response flow
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request