Bug 14279

Summary: Show orgin of data (cache / server)
Product: WebKit Reporter: Peter Speck <speck>
Component: Web Inspector (Deprecated)Assignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: aroben, bweinstein, mrowe, timothy
Priority: P2 Keywords: InRadar
Version: 523.x (Safari 3)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Proposed patch to visually distinguish cached loads
none
Screenshot of cached loads none

Description Peter Speck 2007-06-21 02:29:53 PDT
E.g.
1) was the server not contacted at all due to cached file having expires-header with a future date.

2) was the server contacted, but the cached-version was up to date (304 not modified)

3) was it downloaded from the server.

Plus: display the uncompressed size if the server used a compressed content-encoding.

Plus: display the server http response code and the message.
Comment 1 David Kilzer (:ddkilzer) 2007-06-21 08:01:55 PDT
(In reply to comment #0)
> Plus: display the server http response code and the message.

I believe this is currently available if you click on each request bar.

Comment 2 Peter Speck 2007-06-21 10:14:42 PDT
(In reply to comment #1)
> > Plus: display the server http response code and the message.
> 
> I believe this is currently available if you click on each request bar.

It is only the headers but not the status line, i.e. the first line in:

HTTP/1.0 200 OK
Date: Thu, 21 Jun 2007 17:13:16 GMT
Server: VitalityServer/2.0
Content-type: text/html; charset=ISO-8859-1
Content-length: 601

Comment 3 Mark Rowe (bdash) 2007-06-21 14:28:58 PDT
I think this may be tricky to do as the underlying HTTP stack that WebKit uses (Foundation on Mac, CoreFoundation on Windows) simply hands us back the cached response rather than the "real" response from the server when the request is fulfilled from the cache.
Comment 4 Adam Roben (:aroben) 2008-01-29 10:56:04 PST
<rdar://problem/5712799>
Comment 5 Timothy Hatcher 2008-10-19 00:24:36 PDT
Created attachment 24501 [details]
Proposed patch to visually distinguish cached loads
Comment 6 mitz 2008-10-19 00:26:21 PDT
Comment on attachment 24501 [details]
Proposed patch to visually distinguish cached loads

r=me
Comment 7 Timothy Hatcher 2008-10-19 00:26:55 PDT
Created attachment 24502 [details]
Screenshot of cached loads
Comment 8 Timothy Hatcher 2008-10-19 20:49:07 PDT
Landed part of this in r37709.
Comment 9 Timothy Hatcher 2008-10-23 13:31:44 PDT
Comment on attachment 24501 [details]
Proposed patch to visually distinguish cached loads

Clearing the review flag since I plan to do more work for this bug.
Comment 10 Brian Weinstein 2009-11-20 16:17:19 PST
What else would need to be done to get this bug closed? We now show the HTTP status code and the message as well.
Comment 11 Timothy Hatcher 2009-11-20 16:57:56 PST
Not sureā€¦ hmm.