Hi Sean,

I suggest doing this through Apache's mod_deflate (in Apache 2x) or 
mod_gzip (Apache 1.3x).

Here is my configuration for Apache 2.0:

LogFormat "%h %l %u %t \"%r\" %>s %b \
\"%{Referer}i\" \"%{User-Agent}i\" (%{ratio}n%%)"       combined
CustomLog /var/log/apache2/cartonet.access_log "combined"

<Directory "/some/path/cgi/">
  SetOutputFilter DEFLATE
  AddOutputFilterByType DEFLATE image/svg+xml text/plain text/html
  # Don't compress images
  SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|gz)$ no-gzip dont-vary
  SetEnvIfNoCase Request_URI mapserv? no-gzip dont-vary
 </Directory>

You'd also have to enable mod_deflate like other Apache modules.

Notice the log format definition. This way you see the compression 
rate in your web server log file.

Works great for me with fast performance and without problems.

Andreas

--- In [email protected], Sean M Montague <[EMAIL PROTECTED]> 
wrote:
>
> Can anyone offer suggestions on the best way to compress php output 
of 
> svg? Does the example below compress all the the svg including what 
is 
> outside of the php tags? Will the content of php 
> require_once("php/map.php"); get compressed also? Thank you.
> 
> --Sean
> 




-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to