Wednesday, October 03, 2007

Mind your Bandwidth

While hosting your web site, you need to optimize the data transfer, since bandwidth is very costlier to buy.

How bandwidth is calculated?

Bandwidth indicates the data transfer. Just in case if your site serves a single web page of size 100KB, and 15 users visit the site every single day, then the bandwidth is: 100KB * 15 = 1500KB per day.

Bandwidth Optimization tips:

  1. Keep the web pages as simple as possible. Do not put big image files on the web site.
  2. If you are very sure that the web site content is not going to change for certain period of time, then you can set the cache-expiry header in every web page. So, that the users will fetch the web pages from their local cache and hence the data transfer will be less.
  3. Suppose, if you need to display some images or documents from other sites, do not copy them in to your site. Instead have reference links to other sites,so that the partial traffic will be routed to other sites.If your site allows downloading, then zip the files and then transfer the zipped content. It may help to reduce the data transfer.

No comments: