varnish vcl 4 - If statuscode is 302 and its a picture, pass in vcl_recv somehow
<p>I cant seem to figure out how I can tell Varnish to NOT cache images which return 302.</p>

<p>The case is this:
I have an image handler that resizes on the fly. I call a URL - it resize the image and then redirect to the new image.</p>

<p>At the moment my iages are not returned via varnish. It goes into a constanct loop of redirects because of the caching. Really need to avoid this.</p>

<p>Any solutions?</p>