Hi Andy,
sorry for the late reply. In general, you can put any interceptor within an <if>:
<if test="exc.response.header.getFirstValue('Content-Type') != 'application/zip'">
<rewriter>...</rewriter>
</if>
But, of course, this is far from a good solution, as the content-type might also be "application/octet-stream", or have parameters, or be missing, or ...
It might still work in your case, though.
Best
Toby