Fix content-type header in cached views. Fixes issue #2358
Set content-type to xml to replicate existing behaviour
Remove trailing space
Merge pull request #1334 from thegallagher/2.3-cache-fix

Fix content-type header in cached views.

Fixes #2358