How to solve "0 ms (Request Canceled)" problem?
|
05-05-2010, 07:02 PM
Post: #16
|
|||
|
|||
![]()
More about network packets. Let's take this test run, namely request #8.
Response header (326 bytes + 4 bytes (2 CRs). Total 330 bytes): Quote:HTTP/1.1 200 OK As we can see, image is 2498 bytes long. So how it fits into packets? If we want to squeeze it into 2 packets, total image size should be smaller than: payload * packetcount - header We translate this to bytes, and get: 1460 * 2 - 330 = 2590 Mathematicians says that 2498 is smaller than 2590. Tadaaa. We win! Also, to reduce response header size, someone may consider to remove Last-Modified header line (e.g. Last-Modified: Tue, 04 May 2010 09:49:42 GMT). But, after image expires (1 month: Expires: Fri, 04 Jun 2010 06:45:14 GMT), there will be penalty in form of new image download (200), instead of not modified (304). Think. Back to work ![]() |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)