In an .htaccess file one might set the mimetype for a given extension like:
AddType application/javascript .js
How would one set the mimety
You can use the <files> container to match the file's name before adding a type for it:
<files>
<Files specialfile.js> AddType application/ecmascript .js </Files>