Changing proxy rewrite to only affect HTML or JSON response bodies