If primary backend fails, requests with IO enabled require some special handling.
Use this solution in your VCL service (click RUN below to test this solution or clone it to make changes):
This is a companion discussion topic for the original entry at https://developer.fastly.com/solutions/examples/io-failover-retry