Jump to content


Photo

gzip compression


  • Please log in to reply
8 replies to this topic

#1 vampke2

vampke2

    Etomite Forum Newbie

  • Member
  • 25 posts

Posted 04 May 2010 - 11:26 AM

Hello again,

I want to compress my webpages.
Apparently this does not work for my etomite html pages. Is this normal or am I doing something wrong?

Cheers!

v.

#2 PaulD

PaulD

    Likes Etomite Forums!

  • Developers
  • PipPip
  • 413 posts

Posted 05 May 2010 - 09:09 PM

What do you mean by 'compress my webpages'. Do you mean squashing up all the html etc to make them smaller, or do you mean putting your site into a zip file for transport or email?

Paul.

#3 vampke2

vampke2

    Etomite Forum Newbie

  • Member
  • 25 posts

Posted 07 May 2010 - 08:22 AM

I mean gzip all the files on the server to have them decompressed by my visitors browser: http://developer.yah...ance/rules.html

#4 Cris D.

Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,106 posts

Posted 07 May 2010 - 11:04 AM

Etomite does not have standard html pages like most web sites, although it can have a html extension, the web pages are actually dynamically created from database calls. The exception to this is cached pages that are pulled from the cache files. If you wanted to gzip something, yo could try gzipping the cache files, but this may cause havoc for etomite. Etomite is so good at creating quick pages on the fly, I think there are much better ways to get performance improvements than trying to use gzip. The time you spend getting it to work with etomite, at the end of the day may only save your users fractions of a second.

The web site you provided the link to assumes that you have static, standard wb pages. Etomite only uses these types of pages if you use the "Export" function i the manage.

#5 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 07 May 2010 - 12:53 PM

mod_gzip is an Apache module that can be configured to send pages compressed but you will never notice that the page was compressed at the browser client end... Many Apache servers have mod_gzip enabled by default...

#6 vampke2

vampke2

    Etomite Forum Newbie

  • Member
  • 25 posts

Posted 10 May 2010 - 02:36 PM

Ralph,

I am under the impression that my html pages do not get compressed with mod_gzip.
Hence the question.

Regards,

v.

#7 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 10 May 2010 - 11:19 PM

You can check to see if compression is in use by viewing your phpinfo()... Mine was turned off by default but I was able to turn it on via .htaccess settings...

<IfModule mod_php5.c> 
 php_flag zlib.output_compression on 
 php_value zlib.output_compression_level -1 
</IfModule>

If your server runs PHP 4 then use mod_php4.c in place of mod_php5.c... Also, you can use any zlib.output_compression_level value between 1 and 9 to set min to max compression or use -1 to use the compiled default setting...

Hope this helps...


#8 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,790 posts

Posted 11 May 2010 - 12:13 PM

You can check to see if compression is in use by viewing your phpinfo()... Mine was turned off by default but I was able to turn it on via .htaccess settings...


If you are using cPanel, there's even an option now to compress all content site-wide..

Attached File  Screen shot 2010-05-11 at 17.52.48.png   181.28KB   7 downloads

#9 Rolandas

Rolandas

    Etomite Forum Newbie

  • Member
  • 2 posts

Posted 06 June 2010 - 08:36 PM

On high load web sites better use deflate compresion (if your server supports it)
<IfModule mod_deflate.c>
	<FilesMatch "\.(php|html)$">
  	SetOutputFilter DEFLATE
	</FilesMatch>
</IfModule>






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users