[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Web Apps

From: Chris Croome <chris_at_webarchitects.co.uk>
Date: 2004-06-28 13:27:59 CEST

Hi

On Mon 28-Jun-2004 at 01:11:31PM +0000, Johannes Fahrenkrug wrote:
>
> > I don't see why an OutputFilter couldn't be used.. I use the DEFLATE
> > output filter with subversion...
>
> Interesting, I didn't know that :)
> Could you explain to me how that works?

I just have an location directive like this:

  <Location />
    # http://httpd.apache.org/docs-2.0/mod/mod_deflate.html
    SetOutputFilter DEFLATE
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    SetEnvIfNoCase Request_URI \
    \.(?:gif|jpe?g|png)$ no-gzip dont-vary
    Header append Vary User-Agent env=!dont-vary
  </Location>

You can test if stuff is being gzipped using Apache Bench like this:

  ab -n 1 -v 4 -H 'Accept-Encoding: gzip' http://example.com/

> What happens if a php script want to include other php files that
> reside in the repository?

I don't really do any PHP so I dunno, but if the files are included
via HTTP then I guess it should work, I doubt if it would if they
are included by looking on the filesystem....

Chris

-- 
Chris Croome                               <chris@webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 28 13:29:27 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.