An #askFedi for people who know #ApacheWebServer .
-
An #askFedi for people who know #ApacheWebServer . Is there a way to change *just* the mime type a file is sent as?
I'm sending .rss and .atom files as application/{rss,atom}+xml, but dominant browsers arbitrarily decided these should be downloaded instead of opened in place like they do with plain application/xml files.
So I want to change the mime type to application/xml but only if the request has an Accept: header that does not include application/*+xml or similar. How?
-
An #askFedi for people who know #ApacheWebServer . Is there a way to change *just* the mime type a file is sent as?
I'm sending .rss and .atom files as application/{rss,atom}+xml, but dominant browsers arbitrarily decided these should be downloaded instead of opened in place like they do with plain application/xml files.
So I want to change the mime type to application/xml but only if the request has an Accept: header that does not include application/*+xml or similar. How?
And yes before you ask I have read the mod_negotiation document, but this seems to be entirely about sending *different files* based on the Accept*: headers. I want to send the same file, but change the mime type as the superset because browsers are criminally set on killing everything the web is good for.
-
undefined rag. Gustavino Bevilacqua ha condiviso questa discussione