Level 9: Inspect MIME Types
- Use Postman, cURL, or your browser dev tools to download the static assets you just exposed.
- Record the
Content-Type header that comes back for HTML, CSS, JSON, CSV, and image files.
- Check the
Content-Type header on each response to see how Express advertises different MIME types.
- Adjust file extensions or add
res.type() calls if any MIME type isn’t what you expect.
- Note: HTTP response headers (like
Content-Type, Content-Length, or Cache-Control) describe metadata about the payload so clients know how to interpret and handle the data they receive.