[wp-hackers] wordpress.tar.gz
Omry Yadan
omry at yadan.net
Wed Sep 26 07:32:20 GMT 2007
Thanks for clarifying.
Barry Abrahamson wrote:
> Omry Yadan wrote:
>> great.
>>
>> just curious - why does the user-agent have any effect on the file
>> the client receives?
>
> So, here's the technical explanation:
>
> It had nothing to do with the User-Agent but with the HTTP request
> headers that were sent. By default CLI utilities such as wget and
> curl dont send any Accept-Encoding headers. Server side we were
> sending a 'Content-Encoding: gzip' header for the tar.gz file. Since
> there was no 'Accept-Encoding: gzip' header sent by the client, an
> uncompressed version was delivered to the client. It's pretty
> inconvenient (as you noticed) to have a tar.gz file that is uncompressed.
>
> I have removed the Content-Encoding header and replaced it with the
> correct Content-Type headers to identify the different download types.
>
> Barry
>
More information about the wp-hackers
mailing list