esmq2092 commented on issue #7459:
URL: https://github.com/apache/trafficserver/issues/7459#issuecomment-799158895
follow your advice, i use header_rewrite to achieve the goal. ^-^
cond %{READ_REQUEST_HDR_HOOK}
cond %{HEADER:Accept} /webp/
set-header TEST-IMG-FMT webp
cond %{READ_RESPONSE_HDR_HOOK}
cond %{HEADER:Content-Type} /image/
add-header Vary TEST-IMG-FMT
add-header TEST-IMG-FMT webp
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]