laserninja opened a new issue, #11582:
URL: https://github.com/apache/gravitino/issues/11582

   ### What would you like to be improved?
   `loadTable` implements ETag-based conditional loading (`If-None-Match`, 
`generateETag`, `buildResponseWithETag`, returning `304 Not Modified`), but 
`loadView` returns the full response unconditionally with no ETag support. This 
is an inconsistency in spec coverage and misses a caching/bandwidth 
optimization that the Iceberg REST spec allows for views.
   
   ### How should we improve?
   Add ETag generation and `If-None-Match` handling to `loadView`, reusing the 
existing helpers used by `loadTable` where possible. Return `304 Not Modified` 
when the client's ETag matches, and include the `ETag` header on `200` 
responses. Add tests for match/no-match/absent-header cases.
   
   Related: spec-compliance epic #10547.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to