mark012492
Chevereto Member
Just wanted to post some new tweaks that I customized for version 3.
The following requires mod_deflate and mod_expires to be loaded into apache or it will not work.
I have customized a list of options based on Chevereto v3 that seem to work well. Before I list them out here are the test results prior to any tweaks.
After enabling mod_deflate and mod_expires in the apache configuration and adding the following rules to the main .htaccess of my doc root (could also add to an includes file to make settings global):
I also went a step further and setup keep alive and timeouts within the apache configuration.
Final Results:
*Please note the server is currently not under load. Depending on traffic results may vary. The score would be even better if I did not include Google Analytics.
*May not want to do this until after you're done setting everything up as your visitors will cache the site as is.
Environment:
Apache 2.2 (will be bumping to 2.4 shortly, do not foresee any issues.)
PHP 5.4
MySQL 5.5
Mark - LinkedIn
linkmypic.com
The following requires mod_deflate and mod_expires to be loaded into apache or it will not work.
I have customized a list of options based on Chevereto v3 that seem to work well. Before I list them out here are the test results prior to any tweaks.
After enabling mod_deflate and mod_expires in the apache configuration and adding the following rules to the main .htaccess of my doc root (could also add to an includes file to make settings global):
Code:
##Begin Compression Opts
<ifModule mod_deflate.c>
<filesMatch "\.(js|css|html|php|jpg|jprg|bmp|png|gif|woff|svg|ico)$">
SetOutputFilter DEFLATE
</filesMatch>
</ifModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/x-icon "access plus 14 days"
ExpiresByType image/jpg "access plus 14 days"
ExpiresByType image/png "access plus 14 days"
ExpiresByType image/gif "access plus 14 days"
ExpiresByType image/svg+xml "access plus 14 days"
ExpiresByType image/jpeg "access plus 14 days"
ExpiresByType image/bmp "access plus 14 days"
ExpiresByType application/x-font-woff "access plus 14 days"
ExpiresByType text/css "access plus 1 week"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType text/javascript "access plus 1 week 6 hours"
ExpiresByType application/x-javascript "access plus 1 week 6 hours"
ExpiresByType application/javascript "access plus 1 week 6 hours"
</IfModule>
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
FileETag None
##End Compression Opts
I also went a step further and setup keep alive and timeouts within the apache configuration.
Final Results:
*Please note the server is currently not under load. Depending on traffic results may vary. The score would be even better if I did not include Google Analytics.
*May not want to do this until after you're done setting everything up as your visitors will cache the site as is.
Environment:
Apache 2.2 (will be bumping to 2.4 shortly, do not foresee any issues.)
PHP 5.4
MySQL 5.5
Mark - LinkedIn
linkmypic.com
Last edited: