Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Dev

Does Apache has similar module like Lighttpd's mod_compress ?

 

 

Apache dev RSS feed   Index | Next | Previous | View Threaded


wangdong.08 at gmail

Nov 20, 2009, 5:03 AM

Post #1 of 9 (1289 views)
Permalink
Does Apache has similar module like Lighttpd's mod_compress ?

Lighttpd's mod_compress can not only compress file, but also cache it.
Can Apache do the same thing?


ruediger.pluem at vodafone

Nov 20, 2009, 5:07 AM

Post #2 of 9 (1252 views)
Permalink
RE: Does Apache has similar module like Lighttpd's mod_compress ? [In reply to]

Use mod_cache for this.

Regards

Rüdiger


________________________________

From: Dong Wang [mailto:wangdong.08 [at] gmail]
Sent: Freitag, 20. November 2009 14:04
To: dev
Subject: Does Apache has similar module like Lighttpd's mod_compress ?


Lighttpd's mod_compress can not only compress file, but also cache it.
Can Apache do the same thing?


wangdong.08 at gmail

Nov 20, 2009, 5:21 AM

Post #3 of 9 (1253 views)
Permalink
Re: Does Apache has similar module like Lighttpd's mod_compress ? [In reply to]

but mod_compress can cache the compressed file, not only the original file.
the mod_cache can only cache the original file, isn't it?

I want a module which can not only compress the file like mod_deflate, but
also cache the file which has been compressed.

Thanks.

On Fri, Nov 20, 2009 at 9:07 PM, "Plüm, Rüdiger, VF-Group" <
ruediger.pluem [at] vodafone> wrote:

> Use mod_cache for this.
>
> Regards
>
> Rüdiger
>
> ------------------------------
> *From:* Dong Wang [mailto:wangdong.08 [at] gmail]
> *Sent:* Freitag, 20. November 2009 14:04
> *To:* dev
> *Subject:* Does Apache has similar module like Lighttpd's mod_compress ?
>
> Lighttpd's mod_compress can not only compress file, but also cache it.
> Can Apache do the same thing?
>
>


lars at eilebrecht

Nov 20, 2009, 5:30 AM

Post #4 of 9 (1248 views)
Permalink
Re: Does Apache has similar module like Lighttpd's mod_compress ? [In reply to]

Dong Wang wrote:

> but mod_compress can cache the compressed file, not only the original file.
> the mod_cache can only cache the original file, isn't it?

If you combine mod_deflate with mod_cache/mod_cache_disk the compressed
files will be cached.


ciao...
--
Lars Eilebrecht
lars [at] eilebrecht


wangdong.08 at gmail

Nov 20, 2009, 5:49 AM

Post #5 of 9 (1251 views)
Permalink
Re: Does Apache has similar module like Lighttpd's mod_compress ? [In reply to]

Thanks very much.

But I found a problem, see this page:
http://www.digitalsanctuary.com/tech-blog/general/apache-mod_deflate-and-mod_cache-issues.html

The author found one static files can generate thousands of cached copies...

I don't know whether there is already some solutions to this problem?



On Fri, Nov 20, 2009 at 9:30 PM, Lars Eilebrecht <lars [at] eilebrecht>wrote:

> Dong Wang wrote:
>
> > but mod_compress can cache the compressed file, not only the original
> file.
> > the mod_cache can only cache the original file, isn't it?
>
> If you combine mod_deflate with mod_cache/mod_cache_disk the compressed
> files will be cached.
>
>
> ciao...
> --
> Lars Eilebrecht
> lars [at] eilebrecht
>


covener at gmail

Nov 20, 2009, 5:57 AM

Post #6 of 9 (1245 views)
Permalink
Re: Does Apache has similar module like Lighttpd's mod_compress ? [In reply to]

On 11/20/09, Dong Wang <wangdong.08 [at] gmail> wrote:
> Thanks very much.
>
> But I found a problem, see this page:
> http://www.digitalsanctuary.com/tech-blog/general/apache-mod_deflate-and-mod_cache-issues.html
>
> The author found one static files can generate thousands of cached copies...
>
> I don't know whether there is already some solutions to this problem?

This thread belongs on users [at] httpd or in a bug report
(document mod_cache ramifications for accomodating ancient browsers
with example mod_deflate config.)

--
Eric Covener
covener [at] gmail


ruediger.pluem at vodafone

Nov 20, 2009, 5:59 AM

Post #7 of 9 (1247 views)
Permalink
RE: Does Apache has similar module like Lighttpd's mod_compress ? [In reply to]

This is because of the specific configuration used there and works as designed.
(Header append Vary User-Agent env=!dont-vary)

Do you really have a need to support Netscape 4.0.x?

Regards

Rüdiger


________________________________

From: Dong Wang [mailto:wangdong.08 [at] gmail]
Sent: Freitag, 20. November 2009 14:49
To: dev [at] httpd
Subject: Re: Does Apache has similar module like Lighttpd's mod_compress ?


Thanks very much.

But I found a problem, see this page: http://www.digitalsanctuary.com/tech-blog/general/apache-mod_deflate-and-mod_cache-issues.html

The author found one static files can generate thousands of cached copies...

I don't know whether there is already some solutions to this problem?




On Fri, Nov 20, 2009 at 9:30 PM, Lars Eilebrecht <lars [at] eilebrecht> wrote:


Dong Wang wrote:

> but mod_compress can cache the compressed file, not only the original file.
> the mod_cache can only cache the original file, isn't it?


If you combine mod_deflate with mod_cache/mod_cache_disk the compressed
files will be cached.


ciao...
--
Lars Eilebrecht
lars [at] eilebrecht


wangdong.08 at gmail

Nov 20, 2009, 6:22 AM

Post #8 of 9 (1264 views)
Permalink
Re: Does Apache has similar module like Lighttpd's mod_compress ? [In reply to]

Yes, I need... The company I served do not want to lose any flow...

I think I can config the httpd to not compress the response to
Netscape 4.0.x. Maybe it waill be better.

But It is not a safe solution, If someone attack the server using a
lot of different user-agent, then the problem is still there.



On Fri, Nov 20, 2009 at 9:59 PM, "Plüm, Rüdiger, VF-Group"
<ruediger.pluem [at] vodafone> wrote:
>
> This is because of the specific configuration used there and works as designed.
> (Header append Vary User-Agent env=!dont-vary)
>
> Do you really have a need to support Netscape 4.0.x?
>
> Regards
>
> Rüdiger
>
> ________________________________
> From: Dong Wang [mailto:wangdong.08 [at] gmail]
> Sent: Freitag, 20. November 2009 14:49
> To: dev [at] httpd
> Subject: Re: Does Apache has similar module like Lighttpd's mod_compress ?
>
> Thanks very much.
>
> But I found a problem, see this page: http://www.digitalsanctuary.com/tech-blog/general/apache-mod_deflate-and-mod_cache-issues.html
>
> The author found one static files can generate thousands of cached copies...
>
> I don't know whether there is already some solutions to this problem?
>
>
>
> On Fri, Nov 20, 2009 at 9:30 PM, Lars Eilebrecht <lars [at] eilebrecht> wrote:
>>
>> Dong Wang wrote:
>>
>> > but mod_compress can cache the compressed file, not only the original file.
>> > the mod_cache can only cache the original file, isn't it?
>>
>> If you combine mod_deflate with mod_cache/mod_cache_disk the compressed
>> files will be cached.
>>
>>
>> ciao...
>> --
>> Lars Eilebrecht
>> lars [at] eilebrecht
>


minfrin at sharp

Nov 20, 2009, 8:01 AM

Post #9 of 9 (1247 views)
Permalink
Re: Does Apache has similar module like Lighttpd's mod_compress ? [In reply to]

Dong Wang wrote:

> Yes, I need... The company I served do not want to lose any flow...
>
> I think I can config the httpd to not compress the response to
> Netscape 4.0.x. Maybe it waill be better.
>
> But It is not a safe solution, If someone attack the server using a
> lot of different user-agent, then the problem is still there.

The trunk version of httpd (v2.3.x) supports the idea that you can cache
anywhere in the filter stack.

If supporting content varied in useragent is a showstopper for you, you
might choose to cache the data before compressing it instead of after,
leaving the DEFLATE filter to handle the per-browser issues. Obviously
this comes with a higher load on your server, but it is still an option
if you can accept the tradeoff:

AddOutputFilterByType CACHE;DEFLATE text/html

Regards,
Graham
--

Apache dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.