[wp-trac] [WordPress Trac] #18043: Uploaded images dissapear after loading if using compression w/Apache
WordPress Trac
noreply at wordpress.org
Mon Jul 1 21:32:07 UTC 2013
#18043: Uploaded images dissapear after loading if using compression w/Apache
--------------------------------------------------+--------------------
Reporter: ctsttom | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Multisite | Version: 3.2.1
Severity: major | Resolution:
Keywords: has-patch dev-feedback needs-testing |
--------------------------------------------------+--------------------
Comment (by azaozz):
Media files (images, audio, video) shouldn't be compressed by the server.
It not only increases server load, but in most cases produces files that
are slightly larger in size. Best fix here seems to be to disable
compression for content coming from ms-files.php. Example from Apache's
[http://httpd.apache.org/docs/2.2/mod/mod_deflate.html mod_deflate]
config:
{{{
<Location />
# Don't compress images
SetEnvIfNoCase Request_URI \
(?:\.gif|\.jpe?g|\.png|ms-files\.php)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</Location>
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18043#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list