Women in Technology

Hear us Roar

  Two Servlet Filters Every Web Application Should Have
Subject:   Reducing Connections
Date:   2003-11-25 06:18:33
From:   anonymous2
Is there no way of bundling the entire page contents? For each item:
  • image
  • css
  • js
  • etc...
a new connection has to be made to the webserver, would the network load not be reduced (at the fixed cost of cpu) if all the files were bundled in one gzip?
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Reducing Connections
    2003-12-03 17:06:30  jfalkner [View]

    You can do this a few ways. The method I most commonly use is to simply let the client's browser cache things such as images, css pages, javascript files, and whatever else it can. See a few more posts down for more information about client-side caching. However, most browsers automatically try to optimize this.

    About reducing connections. Yeah it is a good idea, and as I recall the HTTP 1.1 spec lets a web browser do just that. Again, this is something that most of the time browsers do on their own and it tends to work well. There really isn't anything you should do on the server-side. Although I might be wrong, anyone have a suggestion?