kaushalmodi / hugo-atom-feed

Hugo theme component for ATOM feed custom Output Format
GNU General Public License v3.0
40 stars 13 forks source link

Add hint about correct HTTP response header #11

Closed jpawlowski closed 5 years ago

kaushalmodi commented 5 years ago

TIL, thanks!

kaushalmodi commented 5 years ago

@jpawlowski Btw, I now force the Content Type to be "application/atom+xml" on Netlify, but now opening https://scripter.co/atom.xml even on the latest Firefox prompts me to download it instead of rendering it nicely in the browser.. any hints on how to avoid that download prompt?

kaushalmodi commented 5 years ago

Linking this back to the README: https://github.com/kaushalmodi/hugo-atom-feed#pay-attention-to-web-server-mime-type

jpawlowski commented 5 years ago

This file being downloaded instead of rendered is actually one of the expected behaviors. Likely browsers will also start to automatically open your feed reader, depending if your feed reader application actually claimed to handle this particular mime-type. This will improve the end-user experience, developers shall be able to live with this and find workarounds to watch the file in clear text (e.g. using cURL on the terminal).

@kaushalmodi about your feed validation issue: Make sure you're not forgetting the correct encoding, otherwise the validator will fall back to latin1 and likely not be able to parse your content properly.