IIS does not download mustache files

my IIS (7.5) does not allow to download mustache files. Then I add it to the allowed extensions, and then the js files are not loading. Does anyone know why? When I add to allow download, it is written in the web.config file

<staticContent> <mimeMap fileExtension=".mustache" mimeType="text/html" /> </staticContent> 

mustache files are loaded, but js files are not. My application is aspnet 4.5. Thank you Guillermo.

+4
source share
1 answer

What I finished happens with IIS and adds a new MIME BUT type:

  • This was at the server level, not in the application, and not on the website (I mean, the first entry in the left list)
  • Did not add it to text / html, but text / template

It made him work. For this, Web.config has not been changed. The MIME type for the website and the application on the website had the MIME type as inherited (since I already added it at the server level)

+5
source

Source: https://habr.com/ru/post/1491723/


All Articles