You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Shibi NS <sh...@gmail.com> on 2009/08/05 20:47:42 UTC

Re: [users@httpd] mod_deflate and mod_cache can this be combined to improve performance

Is the file is cached before compression or after compression ?. If the file
is cached after compression then its relay helps me in improving the
performance.

Shibi Ns

On Wed, Aug 5, 2009 at 11:28 PM, "Fábio Jr." <fj...@gmail.com> wrote:

>
>  I have a Server running with Apache 2.2.9/Mod_Perl 2.0.4 , now I am trying
>> to use mod_deflate to compress response. I have lot of static files in my
>> server which doesn't change frequently so i want to caching for these
>> compressed files. Is it possible , any idea at what stage mod_cache filter
>> is called ?
>>
>>  As far as I know, when a file is requested, the mod_cache verify if this
> file is already cached, and then, if it's not, meets the request.
>
> Pay an especial attention to the size of the cache, if you will use
> mod_disk_cache, and try to preview the max size, to make a better
> maintenance.
>
> []s
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
--Shibi Ns--

Re: [users@httpd] mod_deflate and mod_cache can this be combined to improve performance

Posted by Shibi NS <sh...@gmail.com>.
Great,Thanks , I that answers my question.

On Thu, Aug 6, 2009 at 12:52 AM, "Fábio Jr." <fj...@gmail.com> wrote:

> Shibi NS escreveu:
>
>> Is the file is cached before compression or after compression ?. If the
>> file is cached after compression then its relay helps me in improving the
>> performance.
>>
>>  It will depends of the compatibility of the client's browser. In
> mod_deflate configs, you should see that it have some configurations about
> what kind of browser can handle compressed files.
>
> This also depends on your settings. If you force all content to be
> compressed, it will be stored in cache compressed. but if the browser is not
> supported, it will store a compressed file, and also a not compressed file
> on cache.
>
> Before you start using mod_deflate + mod_cache, you must have in mind what
> kind of files you want to compress and/or cache. What kind of cache you will
> use (disk / mem / file), what folders and/or file types you must cache and
> what not.
>
> A good starting point is the Apache cache guide <
> http://httpd.apache.org/docs/2.2/caching.html>.
>
> Good luck and any other doubt, i will be happy to help
>
> []s
>
>   Fábio Jr.
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
--Shibi Ns--

Re: [users@httpd] mod_deflate and mod_cache can this be combined to improve performance

Posted by "Fábio Jr." <fj...@gmail.com>.
Shibi NS escreveu:
> Is the file is cached before compression or after compression ?. If 
> the file is cached after compression then its relay helps me in 
> improving the performance.
>
It will depends of the compatibility of the client's browser. In 
mod_deflate configs, you should see that it have some configurations 
about what kind of browser can handle compressed files.

This also depends on your settings. If you force all content to be 
compressed, it will be stored in cache compressed. but if the browser is 
not supported, it will store a compressed file, and also a not 
compressed file on cache.

Before you start using mod_deflate + mod_cache, you must have in mind 
what kind of files you want to compress and/or cache. What kind of cache 
you will use (disk / mem / file), what folders and/or file types you 
must cache and what not.

A good starting point is the Apache cache guide 
<http://httpd.apache.org/docs/2.2/caching.html>.

Good luck and any other doubt, i will be happy to help

[]s

    Fábio Jr.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org