Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-09 Thread James Smith
From Apache point of view... * Don't use .htaccess files... put everything in httpd.conf (or equivalent) there is a huge file system performance hit {Apache has to look for .htaccess files in the directory and any parent directories} include AllowOverride None in httpd.conf * Remove

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-09 Thread Frederik Nosi
Hi James, On 06/09/2015 03:59 PM, James Smith wrote: In many cases it will only be a few packets anyway so won't actually make that much difference! The point is that it is better to stop the request in the first place by setting the appropriate expires/cache control header... than use the

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-09 Thread Motty Cruz
Thanks for your suggestions! Thanks, Motty On 06/09/2015 06:59 AM, James Smith wrote: In many cases it will only be a few packets anyway so won't actually make that much difference! The point is that it is better to stop the request in the first place by setting the appropriate

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-09 Thread James Smith
Yes - it is the request over head - the client will still make the request at which point the server has got to decide has it changed before even - which for most static requests is the heaviest (slowest) part before returning the not-changed response - and then serving the content! You

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-09 Thread Frederik Nosi
Hi James, On 06/09/2015 10:24 AM, James Smith wrote: From Apache point of view... * Don't use .htaccess files... put everything in httpd.conf (or equivalent) there is a huge file system performance hit {Apache has to look for .htaccess files in the directory and any parent

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-09 Thread Rainer Canavan
Remove etags (Header unset Etag/FileETag None) Won't this disable conditional requests, ex. If-None-Match and friends? Is your recomendation because of the header overhead or am I missing something? Just if-None-Match. If-Modified-Since would still work. I believe people recommend disabling

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-09 Thread Frederik Nosi
Hi Rainer, On 06/09/2015 02:53 PM, Rainer Canavan wrote: Remove etags (Header unset Etag/FileETag None) Won't this disable conditional requests, ex. If-None-Match and friends? Is your recomendation because of the header overhead or am I missing something? Just if-None-Match.

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-09 Thread James Smith
It's not the etag calc it's actually the round tripping to the server that is the main over head - better to get the client to cache content... Apache will still have to touch the file system to see if the content has changed (however it is done) and on some filesystems just locating the file

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-09 Thread Frederik Nosi
Hi James, On 06/09/2015 02:36 PM, James Smith wrote: Yes - it is the request over head - the client will still make the request at which point the server has got to decide has it changed before even - which for most static requests is the heaviest (slowest) part before returning the

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-09 Thread James Smith
In many cases it will only be a few packets anyway so won't actually make that much difference! The point is that it is better to stop the request in the first place by setting the appropriate expires/cache control header... than use the etag mechanism... James On 09/06/2015 14:56,

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-09 Thread Stormy
At 09:24 AM 6/9/2015 +0100, James Smith wrote: [snip good advice] * For minifying CSS/JS: look at yui compressor and google closure compiler... (Use jshint to check your js to make sure that it will merge/compress OK) * Can use a number of build tools to do some of this

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-08 Thread Emir Ibrahimbegovic
What have you tried? On Mon, Jun 8, 2015 at 5:35 PM, Motty Cruz motty.c...@gmail.com wrote: Hello, I am getting the following suggestions from: https://developers.google.com/speed/pagespeed/insights/ Should Fix: Optimize images Leverage browser caching Consider Fixing: Eliminate

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-08 Thread Darryle Steplight
Look into grunt or gulp first for Minify CSS,Minify HTML and optimizing images. On Mon, Jun 8, 2015 at 5:38 PM, Emir Ibrahimbegovic emir.ibrahimbego...@gmail.com wrote: What have you tried? On Mon, Jun 8, 2015 at 5:35 PM, Motty Cruz motty.c...@gmail.com wrote: Hello, I am getting the

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-08 Thread Darryle Steplight
And CDNs are your friend. On Mon, Jun 8, 2015 at 5:41 PM, Darryle Steplight dstepli...@gmail.com wrote: Look into grunt or gulp first for Minify CSS,Minify HTML and optimizing images. On Mon, Jun 8, 2015 at 5:38 PM, Emir Ibrahimbegovic emir.ibrahimbego...@gmail.com wrote: What have you

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-08 Thread Pete Houston
On Mon, Jun 08, 2015 at 02:35:24PM -0700, Motty Cruz wrote: Should Fix: Optimize images Leverage browser caching Consider Fixing: Eliminate render-blocking JavaScript and CSS in above-the-fold content Minify CSS Minify HTML All of those bar one are content issues and therefore unconnected

Re: [users@httpd] Apache24 - how to optimize httpd.conf

2015-06-08 Thread Motty Cruz
Hello, I added this code on .htaccess IfModule mod_mime.c AddType application/x-javascript .js AddType text/css .css /IfModule IfModule mod_deflate.c *AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd

[users@httpd] Apache24 - how to optimize httpd.conf

2015-06-08 Thread Motty Cruz
Hello, I am getting the following suggestions from: https://developers.google.com/speed/pagespeed/insights/ Should Fix: Optimize images Leverage browser caching Consider Fixing: Eliminate render-blocking JavaScript and CSS in above-the-fold content Minify CSS Minify HTML What is the best