traeak commented on issue #7974:
URL: https://github.com/apache/trafficserver/issues/7974#issuecomment-867864845


   Workaround is to add 2 header rewrites, one before and one after the 
background_fetch plugin with example rewrites:
   
   before:
   ```
   cond %{READ_RESPONSE_HDR_HOOK}
   cond %{CLIENT-HEADER:Range} = "" [NOT]
   cond %{STATUS} = 200
   set-status 206
   set-header X-Was200 true
   ```
   
   after:
   ```
   cond %{READ_RESPONSE_HDR_HOOK}
   cond %{HEADER:X-Was200} = "" [NOT]
   set-status 200
   rm-header X-Was200
   ```
   
   Probably can use a private header instead of an X- header.


-- 
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]


Reply via email to