Hey all, in the effort to make VisioList load fast and more server friendly we are currently testing site compression methods.
One which takes the less trouble is apaches mod_deflate. I already tested it out on my own site and got 85% compression rate for my homepage and roughly 75-80% for inner pages/css/js files
If possible i would like to use this method, as we can easily compress javascript, css, xml, images via a few lines. It also takes care of unsupported browsers, proxy services.
With the php method we can easily compress php files as well, but applying that to the js, css etc is more work and also require work on your end which we want to avoid.
So, for this i would like to have a few beta testers, who test this until the end of December, as we wish to release VisioList 0.9 on 31th finally.
What do you have to do?
1) First off, here is a tool which checks your page size and compression rate and speed test in one
http://www.testthisurl.com/
Use this tool to test for both gzip and speed test in one. Refresh it a few times to get some average info ( connection speed varies as you maybe, or not know )
Most speed test sites does not accept any compression and simply serve original content. Most of these sites use php´s curl function for the test and if a option called "CURLOPT_ENCODING" is not set, they ignore it and server original content for the response.
So if you use a different tool and see no speed / page size improovement, the above is likely the reason
2) Paste this block of code into your .htaccess file at the top using a new line ( .htaccess is located in your topsite root, where settings_sql.php is )
3) Revisit the url from above to retest your urls. If it still shows no compression, apaches mod_deflate is most likely turned off. In that case ask your host to turn it on
What i would like to know
Most interested in big sites which list 50+ members per page. But everyone is welcome to test this
1) Compression percent, especially for the homepage
2) Is the site loading faster with this? ( even if not, servers bandwidth should be saved, good for big sites )
3) Do you encounter any errors?
Thanks to everyone who wish to participate
One which takes the less trouble is apaches mod_deflate. I already tested it out on my own site and got 85% compression rate for my homepage and roughly 75-80% for inner pages/css/js files
If possible i would like to use this method, as we can easily compress javascript, css, xml, images via a few lines. It also takes care of unsupported browsers, proxy services.
With the php method we can easily compress php files as well, but applying that to the js, css etc is more work and also require work on your end which we want to avoid.
So, for this i would like to have a few beta testers, who test this until the end of December, as we wish to release VisioList 0.9 on 31th finally.
What do you have to do?
1) First off, here is a tool which checks your page size and compression rate and speed test in one
http://www.testthisurl.com/
Use this tool to test for both gzip and speed test in one. Refresh it a few times to get some average info ( connection speed varies as you maybe, or not know )
Most speed test sites does not accept any compression and simply serve original content. Most of these sites use php´s curl function for the test and if a option called "CURLOPT_ENCODING" is not set, they ignore it and server original content for the response.
So if you use a different tool and see no speed / page size improovement, the above is likely the reason
2) Paste this block of code into your .htaccess file at the top using a new line ( .htaccess is located in your topsite root, where settings_sql.php is )
Code:
#######################
## File Compressions ##
#######################
<IfModule mod_deflate.c>
# Insert filters
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
AddOutputFilterByType DEFLATE image/svg+xml
# Drop problematic browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
What i would like to know
Most interested in big sites which list 50+ members per page. But everyone is welcome to test this
1) Compression percent, especially for the homepage
2) Is the site loading faster with this? ( even if not, servers bandwidth should be saved, good for big sites )
3) Do you encounter any errors?
Thanks to everyone who wish to participate