11
kenogui
Re: Gzip compression really working ?
  • 2004/2/19 17:33

  • kenogui

  • Just popping in

  • Posts: 25

  • Since: 2004/1/19


@jan304:
Yes your code is not working at all, gzip is not used and my option is correctly activated.

take a look at: http://www.edginet.org/cgi-bin/http_head.cgi?url=&Submit=Submit&mod=&enc=on&.cgifields=enc

check the box for accepting the Gzip, and look at the HTTP header in response, there is no line "content-Encoding: gzip" with your code.
Same result with ackbarr tools for mozilla (a great one I didn't known ... thx for that ackbarr).

on the other hand, ackbarr proposal with the Htaccess lines, is fully working. Thanks a lot !

@ackbarr:
about jpcache, it was not a proposal to use jpcache instead of smarty, but to use or to be inspired by its Gzip handling function for xoops...

12
Jan304
Re: Gzip compression really working ?
  • 2004/2/19 17:49

  • Jan304

  • Official Support Member

  • Posts: 520

  • Since: 2002/3/31


@kenogui: Check with anything you like on:
http://www.antiekraak.com/portal/ where I have used the code. It works just fine. Maybe not on all systems. Again, maybe the gzip mod in php isn't loaded at your system and only in apache.

Check with phpinfo(); or it is running or not.

// Edit: you might want to edit the file functions.php in place of cp_functions.php.

13
kenogui
Re: Gzip compression really working ?
  • 2004/2/20 8:34

  • kenogui

  • Just popping in

  • Posts: 25

  • Since: 2004/1/19


ok, it works now. Thx. It was the wrong file.

14
Chainsaw
Re: Gzip compression really working ?
  • 2004/2/20 9:53

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


I used the .htaccess method. Tested with all the three analysing website and passed with flying colors. Many thanks.

15
phppp
Re: Gzip compression really working ?
  • 2004/2/29 4:31

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


None of them works for me.
After a long time tough trial of gzip mode, i have to give up.


16
basby
Re: Gzip compression really working ?
  • 2004/4/10 12:03

  • basby

  • Not too shy to talk

  • Posts: 109

  • Since: 2003/1/28


The compression works for the HTML part of my site (compressed from 22 KB to 4) but not for the script code.

Is this as expected?

17
ajaxbr
Re: Gzip compression really working ?
  • 2004/7/22 18:25

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


So... is this bug in the "To Whack" list yet?

18
OnePay
Re: Gzip compression really working ?
  • 2004/8/12 7:22

  • OnePay

  • Just popping in

  • Posts: 9

  • Since: 2003/3/27


In our implementations "$xoopsConfig['gzip_compression']" returns NULL (it is turned on in the admin), so it would not even try to use ob_gzhandler. However, when I remove the complete if-statement and just put "ob_start('ob_gzhandler')" there is no "Content-Encoding: gzip" in the headers. Only after placing the "ob_start('ob_gzhandler')" on the very first line (in the first else-statement) in the "common.php" file it outputs the site using gzip compression.

Note: I have added this to the bug list.

19
hervet
Re: Gzip compression really working ?
  • 2004/8/12 11:37

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

Jan, as you sayed, the function phpinfo() is sometimes disabled by ISP, that's the same for the ob_* functions.

Kenogui,

Concerning jpcache, I had some fantastic results (and much more better) with turk mmcache (available on sourceforge)


Bye,
Hervé

20
libervis
Re: Gzip compression really working ?
  • 2004/9/30 21:14

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


I am wondering, is this fixed in XOOPS 2.0.7.3??

I mean, does gzip compression works allright in this version of xoops?

It would seem not as i get this warning "Warning [PHP]: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in file include/cp_functions.php line 33"
but what do i know..

And i use kenogui's mod rewrite hack.

Thanks
Daniel

Login

Who's Online

220 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 220


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits