My Varnish VCL code needs to make a simple GET request into a backend system and decide if the requested resource is accessible or not. Unfortunately, the backend system always returns 200, and I must examine the actual body of the response to decide.
Is there a way to access the response body (which is under 1KB) in VCL and do a substring search on it?
I am trying to avoid implementing a proxy service just for this feature.
P.S. For now I have to stick with Varnish 2.1 (Fastly)