1. Caddy version (
Version: v2.1.1 h1:X9k1+ehZPYYrSqBvf/ocUgdLSRIuiNiMo7CvyGUQKeA=
2. How I run Caddy:
a. System environment:
c. Service/unit/compose file:
d. My complete Caddyfile or JSON config:
root * ./src
3. The problem I’m having:
When caddy runs and I go to localhost I get the following error in my Chrome web browser console:
What can I do?
What is the request that is being made?
Here are the request headers from Chrome:
accept-encoding: gzip, deflate, br
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
The script is being retrieved by an index.html file with this in it:
<script src="app.js" type="module" ></script>
How else can I help you help me?
Welcome Nick! We appreciate that
Your config works for me, with the main difference being that I don’t use Windows – does Windows have some sort of system MIME types file that the Go standard lib can load its file associations from?
On linux, it’s often because the
mailcap package is missing which provides the MIME type lookup tables.
It looks like this is the code that fetches them for Windows, looks like it gets them via a syscall to the registry.
I’m not sure what’s going on
Fascinating! Thanks for looking into it, and for explaining the fix. I’m sure it will help others searching for the same problem.
This topic was automatically closed after 30 days. New replies are no longer allowed.