i m writing a small web server. i just want to know that when the client downloads something it should first check in the cache and if it is in the cache it  should download from the cache . accroding to me to enable  this u have to pass some headers which include last modified date .But when i pass the header like http/1.0 200 ok , after sending this i send the page . but it appears as junk char in the html page . can anyone tell me where i m going wrong