I’m using WEBrick (in development mode) to serve a very simple page.
The browser receives from the server two things:
- the html
- a css file
What’s strange is that it takes the server almost ten times longer to
send the css file than it takes it to send the html (11ms for the
html, 120 ms for the css). Both files are about the same size.
What’s going on?
Why is serving css so much more expensive than rhtmls?
ps: i tried putting the css inside the html and the response time is
the same as for a normal html. so it’s clearly not a size issue.