Topic-icon Sharing not working properly

Active Subscriptions:

None
9 years 10 months ago #58822 by StefanSchoch
Hi Alex,

after quite some time, FB now came with a hint about the solution: I had to switch 'gzip' off (which I switched on recently because I heard that it should increase performance):

Hi Stefan,
After further investigation, we have discovered that this is happening because your site is returning gzip content but not setting the "Content-Encoding" header.
The response should either not be gzip'ed or you should include the "< Content-Encoding: gzip>" header.


I asked them how to set this header thing, haven't got an answer yet. Then I will try to switch gzip on again with that header.
Just for you information.
Can you make any sense of this that would helpt improve your system or the informations customers need?

Thx,
Stefan
The topic has been locked.
Support Specialist
9 years 10 months ago #58824 by alzander
Ahhh.. that's extremely helpful. You know, we've told users for a while that the gzip compression can cause problems with the preview, however, we were never sure why.. and it didn't happen on all sites. That answer is extremely helpful for debugging things, though I'm not sure why that header isn't being set. At least it helps narrow things down as to the cause.

GZip can definitely improve page load times, but it adds some complexity 'under the hood' that can introduce problems like this. I'm not sure where or how that header should be set naturally, so unfortunately, I can't give you an answer there. For now, I'd recommend leaving it disabled and testing further to ensure that's the problem before trying to get GZip compression working again.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 10 months ago #58828 by StefanSchoch
Hi Alex,

I alredy posted the question where to define that header to the FB guys, don't have an answer yet.

The problem is (only on this site!) reproducable: gzip on = debugger error on FB, gzip off = everything fine
Interestingly, on another site (same Joomla, evreything identical) gzip on = everything fine.
Strange.

I'll keep you posted when FB has replied.

Stefan
The topic has been locked.
Active Subscriptions:

None
9 years 10 months ago - 9 years 10 months ago #58830 by StefanSchoch
Here's their answer:

Hi Stefan,
You need to set it on the server side configuration.
Here's a link that explains it quite well - betterexplained.com/articles/how-to-opti...th-gzip-compression/

Thanks,
Deepak


To be honest: I don't really understand all of that.
So if you'd had a simple advice what I could do....

Stefan
Last edit: 9 years 10 months ago by StefanSchoch.
The topic has been locked.
Support Specialist
9 years 10 months ago #58831 by alzander
Stefan,
That header should be applied by Joomla through PHP or the server itself. If it's not being set, it likely means there's some other extension or server issue preventing that header from being set. Unfortunately, I don't have a solution for you as the cause could be from many different things and it may take a lot of investigation. It's definitely *not* being caused by JFBConnect though.

As noted above, I'd recommend leaving GZip compression in Joomla disabled until you can narrow down the cause. It's important to note that your Apache settings may already be enabling GZip as well, in which case you don't need to enable it in Joomla.

I did just look at your page. Right now, the page is being GZip encoded, so if Joomla's setting is disabled, I'd leave it that way and you're good to go. You can see the setting in the bottom right.
File Attachment:


Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 10 months ago #58835 by StefanSchoch
Thank you so much for the explanation!
The topic has been locked.
Support Specialist
9 years 10 months ago #58841 by alzander
Glad to help. If there's anything else we can help with, just let us know!

Thanks,
Alex
The topic has been locked.