![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
On May 27, 8:55 pm, Gregor Kofler <use... (AT) gregorkofler (DOT) at> wrote: Lots of rantage demonstrating a total lack of understanding of how browsers work snipped |
#12
| |||
| |||
|
|
On May 27, 7:11 pm, VK wrote: Lots of rantage demonstrating a total lack of understanding of how browsers work snipped You know, it's better to remain silent and be thought a fool than to open your mouth and remove all doubt. |
#13
| |||
| |||
|
|
Lots of rantage demonstrating a total lack of understanding of how browsers work snipped |
|
You know, it's better to remain silent and be thought a fool than to open your mouth and remove all doubt. |
#14
| |||
| |||
|
|
On May 29, 12:22 pm, Peter Michaux <petermich... (AT) gmail (DOT) com> wrote: On May 28, 3:37 pm, "Richard Cornford" <Rich... (AT) litotes (DOT) demon.co.uk wrote: [snip] That illustrates why UA strings are not a viable means of identifying web browsers If you were a system administrator and you wanted to send gzipped JavaScript files to save bandwidth, Many people consider bandwidth to be bytes sent by the server, whereas it should be measured as bits transmitted by the modem after the addition of network stuff and compression. I asked about this on the Apache news group (figuring they'd be a suitably open-minded and knowledgable lot) and got two responses, the one I listened to suggested it is pointless zipping files because: 1. modems are optimised to compress text for transmission and so likely compress files better (or at least no worse) than general purpose compression programs 2. letting the modem do the work saves CPU effort at both ends |
|
3. if the file is zipped before transmission, subsequent modem compression may actually result in more data to transmit (though likely not much more) Anyhow, here's a link: URL:http://groups.google.com.au/group/al...ion/browse_frm... |
#15
| |||
| |||
|
|
On May 28, 3:37 pm, Richard Cornford wrote: snip That illustrates why UA strings are not a viable means of identifying web browsers If you were a system administrator and you wanted to send gzipped JavaScript files to save bandwidth, how would you determine which browsers could accept gzipped files and which could not? |
|
I have only read explanations how to do this with the user agent string. |
|
I have some ideas but have never tried any of them. For example, send a gzipped file and then a non-gzipped file to see if the first file worked. I'm curious what you would do or if you have any experience with this area where user agent string is used. |
#16
| |||
| |||
|
|
On May 28, 3:37 pm, "Richard Cornford" <Rich... (AT) litotes (DOT) demon.co.uk wrote: That illustrates why UA strings are not a viable means of identifying web browsers If you were a system administrator and you wanted to send gzipped JavaScript files to save bandwidth, how would you determine which browsers could accept gzipped files and which could not? |
|
I have only read explanations how to do this with the user agent string. |
#17
| |||
| |||
|
|
Many people consider bandwidth to be bytes sent by the server, whereas it should be measured as bits transmitted by the modem after the addition of network stuff and compression. |
#18
| |||
| |||
|
|
Peter Michaux wrote: On May 28, 3:37 pm, Richard Cornford wrote: snip That illustrates why UA strings are not a viable means of identifying web browsers If you were a system administrator and you wanted to send gzipped JavaScript files to save bandwidth, how would you determine which browsers could accept gzipped files and which could not? The HTTP Accept-Encoding header sent with the request would seem like the obvious place to start (as that is precisely what it is for). |
|
I have only read explanations how to do this with the user agent string. Incredible, and incredibly foolish as HTTP very explicitly allows proxies to change the encoding. That is, if a client cannot handle gzip but the proxy can it can ask the server for gzip, decompress it and send the identity encoded result to the client. It could also do this the other way around, but it would be unlikely that doing so would be seen as a good idea. And it could also disregard any client preference for a compressed encoding and only make identity requests to servers itself. So a proxy may or may not send on the client's UA string or substitute an alternative (which does not matter as the UA string is arbitrary) and it may or may not impose the same encoding limitations as the client. That would make looking at the UA string at all in this context extremely foolish. Indeed more foolish that ignoring q values in the Accept header when content negotiating HTML/XHTML. |
#19
| ||||||
| ||||||
|
|
On May 28, 9:27 pm, RobG <rg... (AT) iinet (DOT) net.au> wrote: On May 29, 12:22 pm, Peter Michaux <petermich... (AT) gmail (DOT) com> wrote: On May 28, 3:37 pm, "Richard Cornford" <Rich... (AT) litotes (DOT) demon.co.uk wrote: 1. modems are optimised to compress text for transmission and so likely compress files better (or at least no worse) than general purpose compression programs |
|
2. letting the modem do the work saves CPU effort at both ends |
|
I didn't know modems do this. There must be a standard compression algorithm to ensure the receiver knows how to decompress. |
|
3. if the file is zipped before transmission, subsequent modem compression may actually result in more data to transmit (though likely not much more) |
|
Hmm. This is quite contrary to the current popular thought about gzipping JavaScript before sending it over the wire. |
|
Steve Souders works for Yahoo!'s performance team and has made many experiments. |
#20
| |||
| |||
|
|
If you were a system administrator and you wanted to send gzipped JavaScript files to save bandwidth, how would you determine which browsers could accept gzipped files and which could not? |
![]() |
| Thread Tools | |
| Display Modes | |
| |