Set my JS MIME type to “text/javascript”

后端 未结 2 1070
滥情空心
滥情空心 2021-02-19 21:52

According to this: Javascript MIME Type, it seems that I should be serving my JS as \"text/javascript\". When I inspect the network communication between my browser and localhos

2条回答
  •  青春惊慌失措
    2021-02-19 22:51

    you need to change your settings in mimes.types file found in your apache conf folder. Change

    application/javascript          js
    

    to

    text/javascript                 js
    

    and restart apache, you should see the change

提交回复
热议问题