how can i see the get-dictionary header

29 views
Skip to first unread message

shimrit

unread,
Mar 28, 2011, 5:38:34 AM3/28/11
to SDCH
hi,
i'm new to sdch, i'm trying to sniff the chrome traffic to see the
sdch headers. i can see the avail-dictionary header but i can't see
the get-dictionary header.
i assume it is saved in some cache, where can i find the dictionary?
can i clean the cache so i can see it comes from the server?

thanks a lot,
shimrit

Yoav Weiss

unread,
Mar 28, 2011, 9:53:18 AM3/28/11
to sd...@googlegroups.com
Hi Shimrit,

The Get-Dictionary header is a header sent from server to browser after the client advertised that it accepts SDCH.
If you see the avail-dictionary headers, your browser already requested and received the dictionary.
Cleaning the cache (plus possibly a browser restart) will cause the browser to "forget" the dictionary. Then you should be able to see the server sends a "Get-Dictionary" header and the browser requests that resource.

Yoav
---------------------------



--
You received this message because you are subscribed to the Google Groups "SDCH" group.
To post to this group, send email to SD...@googlegroups.com.
To unsubscribe from this group, send email to SDCH+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/SDCH?hl=en.


Shimrit Tzur

unread,
Mar 28, 2011, 2:19:37 PM3/28/11
to sd...@googlegroups.com
wow, thanks a lot.
how do i clean the cache?
do you know where can i find it? is it saved somewhere on my hard disk?
thanks again,
Shimrit

Yoav Weiss

unread,
Mar 28, 2011, 3:22:19 PM3/28/11
to sd...@googlegroups.com
You can clean the cache through: "Preferences"->"under the hood"->"clear browsing data"
Ctrl+Shift+del also does the trick

Shimrit Tzur

unread,
Mar 28, 2011, 4:53:16 PM3/28/11
to sd...@googlegroups.com
thanks a lot!

Shimrit Tzur

unread,
Mar 28, 2011, 5:14:38 PM3/28/11
to sd...@googlegroups.com
still can't see the get-dictionary header, only avail-dictionary...
i cleaned the browsing data, maybe the sdch cache is somewhere else?
 thanks again.

Jim R

unread,
May 3, 2011, 6:26:04 PM5/3/11
to SD...@googlegroups.com, sd...@googlegroups.com
Try exiting the browser, and then restarting.

The first attempted load from a page supporting SDCH should include the get-dictionary header.

To see if you've "missed" the load (already), visit:

about:histograms/Dictionary

You'll see (after you've loaded at least one dictionary) a histogram of the sizes of dictionaries loaded.   The page will look something like:

Histogram: Sdch3.Dictionary size loaded recorded 1 samples, average = 96018.0 (flags = 0x1)
0 ...
83848 ------------------------------------------------------------------------O (1 = 100.0%) {0.0%}
110434 ...

The above shows I've loaded one dictionary (1 sample), and the average size was 96K.  This sample appears in the histogram bucket with the range form 83484 to 110434.

Hope that helps,

Jim
Reply all
Reply to author
Forward
0 new messages