Make disposition attachement if not a subresource and if no output specified. Will trigger download on chrome