public
Created

ASIDownload Cache logging

  • Download Gist
gistfile1.m
Objective-C
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
Log from Xcode with a fresh download:
 
2011-08-11 11:43:10.885 Acando Debug[25240:11303] -[OfficesParser download] [Line 569] download running
2011-08-11 11:43:10.886 Acando Debug[25240:11303] -[OfficesParser downloadOffices] [Line 458] downloadOffices running
2011-08-11 11:43:10.886 Acando Debug[25240:11303] [STATUS] Starting asynchronous request <ASIHTTPRequest: 0x73b6400>
2011-08-11 11:43:10.892 Acando Debug[25240:11303] -[OfficesParser requestStarted:] [Line 581] operationCount: (null)
2011-08-11 11:43:10.892 Acando Debug[25240:11303] -[OfficesParser requestStarted:] [Line 583] requestStarted running
2011-08-11 11:43:10.893 Acando Debug[25240:11303] -[OfficesParser requestStarted:] [Line 586] request.tag == 1
2011-08-11 11:43:10.936 Acando Debug[25240:16703] [STATUS] Request <ASIHTTPRequest: 0x73b6400> received response headers
2011-08-11 11:43:10.937 Acando Debug[25240:16703] [STATUS] Request <ASIHTTPRequest: 0x73b6400> finished downloading data (1941 bytes)
2011-08-11 11:43:10.938 Acando Debug[25240:16703] [STATUS] Request finished: <ASIHTTPRequest: 0x73b6400>
2011-08-11 11:43:10.939 Acando Debug[25240:11303] -[OfficesParser requestFinished:] [Line 596] requestFinished running, tag = 1
2011-08-11 11:43:10.939 Acando Debug[25240:11303] -[OfficesParser requestFinished:] [Line 598] Response-headers: {
"Accept-Ranges" = bytes;
Connection = close;
"Content-Length" = 1941;
"Content-Type" = "text/plain";
Date = "Thu, 11 Aug 2011 09:43:09 GMT";
Etag = "\"d5f2b5-795-4e43a368\"";
"Last-Modified" = "Thu, 11 Aug 2011 09:39:52 GMT";
Server = "Apache/1.3.41 (Unix) PHP/5.2.5 with Suhosin-Patch mod_ssl/2.8.31 OpenSSL/0.9.7e-p1";
}
2011-08-11 11:43:10.940 Acando Debug[25240:11303] -[OfficesParser requestFinished:] [Line 601] Used cache:0
 
 
Request headers from HTTPScoop:
 
Accept-Encoding: gzip
User-Agent: Acando Debug 1.0 (iPhone Simulator; iPhone OS 4.3.2; en_US)
Host: www.husradet.se
Connection: keep-alive
Cache-Control: no-cache
 
Response headers from HTTPScoop:
 
Date: Thu, 11 Aug 2011 09:43:09 GMT
Server: Apache/1.3.41 (Unix) PHP/5.2.5 with Suhosin-Patch mod_ssl/2.8.31 OpenSSL/0.9.7e-p1
Connection: close
Last-Modified: Thu, 11 Aug 2011 09:39:52 GMT
ETag: "d5f2b5-795-4e43a368"
Content-Type: text/plain
Content-Length: 1941
Accept-Ranges: bytes
 
Log from Xcode after downloading the same file but with modified content:
 
2011-08-11 11:46:00.551 Acando Debug[25240:11303] -[OfficesParser download] [Line 569] download running
2011-08-11 11:46:00.551 Acando Debug[25240:11303] -[OfficesParser downloadOffices] [Line 458] downloadOffices running
2011-08-11 11:46:00.552 Acando Debug[25240:11303] [STATUS] Starting asynchronous request <ASIHTTPRequest: 0x7bbe000>
2011-08-11 11:46:00.553 Acando Debug[25240:11303] -[AcandoAppDelegate tabBarController:didSelectViewController:] [Line 100] Kontakt
2011-08-11 11:46:00.555 Acando Debug[25240:11303] -[OfficesParser requestStarted:] [Line 581] operationCount: (
)
2011-08-11 11:46:00.555 Acando Debug[25240:11303] -[OfficesParser requestStarted:] [Line 583] requestStarted running
2011-08-11 11:46:00.556 Acando Debug[25240:11303] -[OfficesParser requestStarted:] [Line 586] request.tag == 1
2011-08-11 11:46:00.599 Acando Debug[25240:16703] [STATUS] Request <ASIHTTPRequest: 0x7bbe000> received response headers
2011-08-11 11:46:00.613 Acando Debug[25240:16703] [STATUS] Request finished: <ASIHTTPRequest: 0x7bbe000>
2011-08-11 11:46:00.613 Acando Debug[25240:11303] -[OfficesParser requestFinished:] [Line 596] requestFinished running, tag = 1
2011-08-11 11:46:00.614 Acando Debug[25240:11303] -[OfficesParser requestFinished:] [Line 598] Response-headers: {
"Accept-Ranges" = bytes;
Connection = close;
"Content-Length" = 1941;
"Content-Type" = "text/plain";
Date = "Thu, 11 Aug 2011 09:43:09 GMT";
Etag = "\"d5f2b5-795-4e43a368\"";
"Last-Modified" = "Thu, 11 Aug 2011 09:39:52 GMT";
Server = "Apache/1.3.41 (Unix) PHP/5.2.5 with Suhosin-Patch mod_ssl/2.8.31 OpenSSL/0.9.7e-p1";
"X-ASIHTTPRequest-Response-Status-Code" = 200;
}
2011-08-11 11:46:00.614 Acando Debug[25240:11303] -[OfficesParser requestFinished:] [Line 601] Used cache:1
 
Request headers from HTTPScoop:
 
If-Modified-Since: Thu, 11 Aug 2011 09:39:52 GMT
Cache-Control: no-cache
Connection: keep-alive
User-Agent: Acando Debug 1.0 (iPhone Simulator; iPhone OS 4.3.2; en_US)
Accept-Encoding: gzip
If-None-Match: "d5f2b5-795-4e43a368"
Host: www.husradet.se
 
Response headers from HTTPScoop:
 
Date: Thu, 11 Aug 2011 09:45:59 GMT
Server: Apache/1.3.41 (Unix) PHP/5.2.5 with Suhosin-Patch mod_ssl/2.8.31 OpenSSL/0.9.7e-p1
Connection: close
Last-Modified: Thu, 11 Aug 2011 09:45:55 GMT
ETag: "d5f2b5-798-4e43a4d3"
Content-Type: text/plain
Content-Length: 1944
Accept-Ranges: bytes

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.