Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ptx
4 months ago
|
parent
|
context
|
favorite
| on:
XSLT removal will break multiple government and re...
What about content negotiation [1] based on the Accept header? If the client indicates a preference for HTML you could send it the human-readable page and otherwise you send the RSS feed. Wouldn't that work?
[1]
https://httpd.apache.org/docs/current/en/content-negotiation...
trekz
4 months ago
[–]
It can be done but it's not practical because most RSS readers don't even send an Accept header at all, let alone one with an XML mime type.
ptx
4 months ago
|
parent
[–]
But browsers do send the Accept header, so you could default to RSS for requests from other clients (such as RSS readers).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://httpd.apache.org/docs/current/en/content-negotiation...