txt: text/plain
js: [application/javascript, application/x-javascript, text/javascript]
css: text/css
json: [application/json, application/x-json]
xml: [text/xml, application/xml, application/x-xml]
rdf: application/rdf+xml
atom: application/atom+xml
It is used by the framework to automatically manage the Content-Type of the response, based on the request URI extension.
As above,there are 3 different content types for .js
extension,how does symfony choose the final content type?