> ----- Original Message ----
> From: Tom Jackson <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Monday, April 14, 2008 10:55:55 PM
> Subject: Re: [AOLSERVER] Compression
> 
> Okay, I have played around with this a little. Here are some notes and
> questions.
> 
> This doesn't work on static files, which might be a good thing.

yeah, that's what I was assuming...

> 
> Static files are handled via fastpath.c, and it is very efficient. It returns
> a not modified response, or zero content, just headers if the file hasn't
> changed. When you combine this with the browser cache, even a refresh is
> efficient. So, with AOLserver, try to use static files if possible, even as a
> cache, which we have talked about before.
> 
> Dynamic files are covered, Filters can be used to enable the flag for a given
> conn, the filter pattern limits the scope. Local tcl files can disable
> compression.

I saw that you added the capability (to set the flag) in the nszlib module. Is 
this the right place for it (i.e. for ADP compression, there was a separate 
command)? I'm not sure myself...so that's a legitimate question. I guess I 
don't care much, as long as the functionality is there.


> 
> So the question is how to handle static files. One idea is to check if
> compression is enabled, if so, check if a compressed file exists
> (file.ext.gz), use the uncompressed file to figure out the content type, and
> return the compressed file (assuming the client sends the correct headers).

I think this sounds ok. Might want to piggy back off of what Daniel posted a 
while back on this:

http://www.mail-archive.com/[email protected]/msg10630.html

So, I guess what we can do, is at least start out with the route that Jeff R. 
proposed, and create a library (filters) to handle compression, using the new 
command to expose the Ns_ConnSetGzipFlag function. If problems arise doing it 
this way, or if performance is not good, then we can look into moving into the 
core?

So, I guess we'll need a filter to handle the dynamic pages, and then a 
separate filter to handle the static pages (similar to Daniels solution).

How does that sound?

Thanks,
    --brett




      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to