Any thoughts on gZIP compression and Cs-cart ?

Just wondering if there is a simple way to enable gZIP compression on cs-cart pages ?



and if so are there any advantages or disadvantages that anyone has noticed ?

you can start with…these lines in your .htaccess file



php_flag zlib.output_compression On

php_value zlib.output_compression_level 5

If you are looking to speed it up - this post has the best solution I have found.



Went from a 10+ second load time, to under 3 seconds.



It handles gzip, minify, etc, all in one batch.



Mark

Thanks NicheBuilder, that helped me a ton! I’m going to use that script for all my projects now!

@ Jonah -



I have some pretty aged WordPress sites that I have always used a WP-Cache plugin with. After finding the SmartOptimizer - I pulled the cache plugins and us it for everything!



Small footprint - superb results!



Mark

WOW, this is one the most useful things I’ve come across in the last year! Thank you again!

how exactly did you install SmartOptimizer with cs-cart ?

Yeah, I would love to find this out too. I followed the directions, but between the original post above and now something changed and I can’t figure out how to make this work.



Does anyone have any ideas?



Thank you,



Brandon

Installation Instructions

------------------------

  1. Upload smartoptimizer folder to your website.
  2. “smartoptimizer/cache” folder should be writable (in most cases 777 permission is needed).
  3. Upload .htaccess file on the folder that smartoptimizer folder is placed, if there is no another htaccess file currently.

    Otherwise, Copy content of SmartOptimizer htaccess file and paste it inside your current htaccess at the beginning of the file.
  4. It’s ready. Enjoy it.

I would be interested in this too.



Adam

@ All -



It was actually very simple -



1 - Upload and decompress the smartoptimizer archive folder to the root of your domain. (Should resolve to: yourdomain.com)



2 - Open your root htaccess and on the top line, paste the following code:




ExpiresActive On
ExpiresDefault "access plus 10 years"



RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*\.(js|css))$ smartoptimizer/?$1


RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*\.(js|css|html?|xml|txt))$ smartoptimizer/?$1



RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt))$ smartoptimizer/?$1



FileETag none




3 - Make sure the yourdomain.com folder has 777 permissions.



4 Enjoy…

Are there any side effects for doing this? Sounds too good to be true. Why wouldn’t everyone be doing this to speed up their site?



Thanks,



Adam

No side effects on the site I have it on… [url]http://www.overstockavenue.com/[/url]



Works like a charm and increased initial load time by 75-80%

[quote name=‘NicheBuilder’]No side effects on the site I have it on… [url]http://www.overstockavenue.com/[/url]



Works like a charm and increased initial load time by 75-80%[/QUOTE]





i tried it out on my site …



but if i do a gzip test at :



[url]http://www.gidnetwork.com/tools/gzip-test.php[/url]



it says the page is not compressed … not sure if it fully works or not …

@ teksigns -



I get the same “gzip not active” message when using it… but the checker is only looking for the presence of the gzip mod in your files, which its not.



If you use Firefox - grab the YSlow extension, it will show what you really save with using the optimizer.



Look at this for proof… Before compression: 367k, after: 21.3k



ok here is my results :



[SIZE=“6”][COLOR=“Red”]this is without anything at all …[/COLOR][/SIZE]







[SIZE=“6”][COLOR=“Red”]this is with gzip like this only …[/COLOR][/SIZE]

php_flag zlib.output_compression On

php_value zlib.output_compression_level 5







[SIZE=“6”][COLOR=“Red”]this is with smartoptimizer only …[/COLOR][/SIZE]







[SIZE=“6”][COLOR=“Red”]this is with smartoptimizer and gzip in htaccess like below …[/COLOR][/SIZE]

php_flag zlib.output_compression On

php_value zlib.output_compression_level 5



Huh, it’s funny I did this exact same thing last night and it made my whole site go down, but now I did it again and everything works. I guess I must have misstyped something.



Anyways, this does work. For me it didn’t make a huge difference, but I thing that is because I have a lot of images on my homepage. But, I will say it does help some.



Brandon

i noticed that adding the gzip to the htaccess causes the my account page to break

if your already running the optimizer …

@ Brandon -



Head over to this speed test page and drop your domain in. What I use it for mostly is to ID large images, large files, etc. You have a few banners that are fairly large in size - and it may help to crunch them down a bit. I am of the thought that every little bit helps! :slight_smile:



For anyone else interested in my efforts to get a 400k homepage to load in -4 seconds - I have a post written here. I was able to find several 404’s within the stylesheet that also slowed the loading process.



M

[quote name=‘brandonvd’]Huh, it’s funny I did this exact same thing last night and it made my whole site go down, but now I did it again and everything works. I guess I must have misstyped something.[/QUOTE]

I am all too familiar with this syndrome which seems to clear up after some sleep. I should try that more often.



Bob