You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/06/24 18:34:25 UTC

[GitHub] [trafficserver] traeak commented on issue #7974: background_fetch plugin requires server support 206s

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:
users@infra.apache.org