[wp-trac] [WordPress Trac] #10365: Gzip compression should be offered by default in Wordpress
WordPress Trac
wp-trac at lists.automattic.com
Wed Dec 16 23:16:12 UTC 2009
#10365: Gzip compression should be offered by default in Wordpress
-----------------------------+----------------------------------------------
Reporter: caesarsgrunt | Owner:
Type: feature request | Status: reopened
Priority: normal | Milestone: 3.0
Component: Optimization | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+----------------------------------------------
Comment(by caesarsgrunt):
@Denis:[[BR]]
When does the function {{{save_mod_rewrite_rules}}} which you've added the
code into actually get run?
Also, why not compress all content except images? We can use the sample
code at http://httpd.apache.org/docs/2.0/mod/mod_deflate.html (with some
of the comments stripped out...) :
{{{
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
# Drop problematic browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10365#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list