[wp-trac] [WordPress Trac] #22913: Files "corrupted" when streamed to file via HTTP API
WordPress Trac
noreply at wordpress.org
Sun Dec 23 19:23:48 UTC 2012
#22913: Files "corrupted" when streamed to file via HTTP API
--------------------------+-----------------------------
Reporter: samthorne | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: HTTP | Version: 3.2
Severity: normal | Resolution:
Keywords: |
--------------------------+-----------------------------
Comment (by azaozz):
I've ran into something similar when doing the script/style
concatenation/compression few years ago (double compression).
The "proper" way to deal with proxies would be to try to turn off
compression when requesting zipped files:
{{{
header('Vary: Accept-Encoding');
header('Accept-Encoding: identity');
}}}
Alternatively the `Accept-Encoding` header can turn off the compression
methods specifically:
{{{
header('Accept-Encoding: identity;q=1.0, compress;q=0, gzip;q=0,
deflate;q=0');
}}}
My tests at the time confirmed both working, but it was some 4 years ago,
re-testing would be good :)
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22913#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list