title: Why is CSS file canceled?
body: <p>I'm doing a simple node project to practice but i can't manage to serve html file with its css styles. I asked the same question before on SO but I didn't mention that the status of css file was "canceled" in the developer tools. When I edited it nobody answered about why it is canceled, so i wish someone help me with this. It is making me crazy.
  Here is my app.js code:
      app.use("/signup", express.static("public"));</p>
  
  <pre><code>app.get("/", (req, res)=&gt;{
   res.send("Welcome to our website");
  });
  
  app.get("/signup", (req, res)=&gt;{
   res.sendFile(`${__dirname}/index.html`)
  })
  </code></pre>
  
  <p>Here is my html code: </p>
  
  <pre><code>&lt;head&gt;
      &lt;title&gt;testapp&lt;/title&gt;
      &lt;link href="./public/styles.css" type="text/css" rel="stylesheet"/&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form method="post" action="/signup"&gt;
          &lt;input type="text" placeholder="*First Name" required&gt;&lt;/input&gt;
          &lt;input type="text" placeholder="*Last Name" required&gt;&lt;/input&gt;
          &lt;input type="number" placeholder="*Age" required&gt;&lt;/input&gt;
          &lt;input type="email" placeholder="*Email" required&gt;&lt;/input&gt;
          &lt;input type="submit" value="Submit" required&gt;&lt;/input&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>When I remove the get method of "/signup", and put my index.html in the public directory while updating the link to css, it works just fine, but i don't want it in the '/' route. And also when opening the index.html file without the localhost, it works fine.
  I searched about it and found someone who had kind of the same issue asked about on SO, I think that the answers aren't right in my case, i'm not sure and i didn't understand well.<a href="https://stackoverflow.com/questions/12009423/what-does-status-canceled-for-a-resource-mean-in-chrome-developer-tools">What does status=canceled for a resource mean in Chrome Developer Tools?</a>.</p>
  
  <p>Thank you in advance.</p>