Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1
  • 2

TOPIC:

gzip compression 1 month 1 day ago #21

  • eh215
  • eh215's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 228
Sorry for the delay, I have been tied up and away from this for a little while.

Compression is working OK on my site, so I do not think there is a webtrees issue. Here is a console log of my home page, as you can see all of the items are indeed compressed.

Eric

webtrees 2.0.10 at behunt.net/ft
PHP 7.4.8, MySQL 5.7.23-23
Attachments:

Please Log in or Create an account to join the conversation.

gzip compression 1 month 1 day ago #22

  • eh215
  • eh215's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 228
Also, if your hosting service hasn't set up caching for you, then adding browser-based caching can speed up your website considerably by eliminating the need to send various elements at all. This is what I have in .htaccess for an Apache-based host
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 12 month"
</IfModule>

Pulling an element from the browser cache is far faster than any across-the-internet transfer

Eric
webtrees 2.0.10 at behunt.net/ft
PHP 7.4.8, MySQL 5.7.23-23

Please Log in or Create an account to join the conversation.

gzip compression 4 weeks 5 hours ago #23

  • jprause
  • jprause's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 197
@eh215:

At this moment I'd only like to note that under my domain there are a few other subdomains:
besides webtrees 2.0 there are two WordPress sites, two Mediawiki sites and one Piwigo.
All of them are successfuly gzip compressed.

This is what I said earlier in this thread. The webtrees 1.7 was gzip compressed successfuly, too.
Josef

webhosting:-- webtrees 2.0.11, PHP version 7.4.14, MySQL 5.7.21, testing webtrees 2.0.11
local desktop:-- webtrees 2.0.12-dev, PHP version 7.4.3, MySQL 8.0.21, Apache2 2.4.29, Linux Ubuntu 20.04 64bit

Please Log in or Create an account to join the conversation.

Last edit: by jprause.

gzip compression 4 weeks 35 minutes ago #24

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084
webtrees sets a "Content-length" header on its output.

This allows browsers to show a progress bar while downloading, etc.

It appears that apache does not apply gzip compression if this header exists.
(It should remove it and replace it with a new header containing the compressed size.)

It works OK with other webservers. e.g. nginx.

I don't know if this is a bug in apache, a config option, etc.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum