In the .htaccess file, you can set the mimetype type for this extension, for example:
AddType application/javascript .js
How to set mimetype type for one file instead of extension? I have one Javascript that requires a different mimetype type than other Javascript files in the same folder.
AddType application/javascript .js AddType application/ecmascript specialfile.js
The second line does not work.
source share