Added headers option. Only respond with resource content.