Skip to content

Instantly share code, notes, and snippets.

@peterwarbo
Created August 11, 2011 10:36
Show Gist options
  • Save peterwarbo/1139351 to your computer and use it in GitHub Desktop.
Save peterwarbo/1139351 to your computer and use it in GitHub Desktop.
ASIDownload Cache logging
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment