lwsjs / local-web-server

A lean, modular web server for rapid full-stack development.
MIT License
1.2k stars 85 forks source link

Where to set mime config #108

Closed Petah closed 5 years ago

Petah commented 5 years ago

Hi,

I feel im missing something super basic here. The docs describe how to set custom mime types https://github.com/lwsjs/local-web-server/wiki/How-to-customise-response-MIME-types

But I am unsure where to put this config and how to load it. Could you point me in the right direction.

75lb commented 5 years ago

https://github.com/lwsjs/local-web-server/wiki/Configuration-Management

Petah commented 5 years ago

Thanks, I did read and try that but it didn't seem to work. But I have figured out why:

Because I loaded the page in my browser before setting those settings it cached the response, so after I updated the config the browser was showing the cached mime type.