ExpressJS Server Hardcoded HTML Response

1 month ago
17

Learn how to define a route for an ExpressJS server at a custom path, in addition to setting the Content-Type header and replying with some HTML page content.

You also learn to use the browser developer tools (DevTools) to investigate the GET request made by the browser, so you can see the Response headers sent back by the Express backend. You are also shown the option to disable cache for browser requests.

Loading comments...