Support

Admin Tools

#9723 X-Content-Encoded-By does not seem to work

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Thursday, 30 December 2010 10:46 CST

user14670
Hello,

I am using Lighttpd for my web server, not Apache, which may be the issue here but I have set the field in the firewall for the gzip x content encoding to a value but it does not seem to be working. Here is the header info as per my web site debugging tool. Notice "X-Content-Encoded-By" is still showing that it is Joomla.

X-Powered-By	minds are like parachutes
Content-Type	text/html; charset=utf-8
Content-Encoding	gzip
X-Content-Encoded-By	Joomla! 1.5
Expires	Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified	Tue, 28 Dec 2010 18:32:54 GMT
Cache-Control	no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma	no-cache
Transfer-Encoding	chunked
Date	Tue, 28 Dec 2010 18:32:54 GMT
Server	my_webserver


Is this a bug or something that is just not finished as of yet. I am using Admin Tools Professional v1.1 which is reporting that it is up to date.

Thank You for Your Attention, Paul

nicholas
Akeeba Staff
Manager
There is one undocumented catch. In order for this feature to work in Joomla! 1.5 I have to replace one of Joomla! classes with a patched version. This patch was written by yours truly and is already included in Joomla! 1.6. However, I do not like "hacking the core", i.e. I don't like replacing Joomla! files on disk. In order to replace the class without replacing the disk file, I have to load my patched file before Joomla! has a chance to load its own. In order to do that, the following conditions must be met:

a. The plg_admintools plugin has to be the very first plugin to be loaded, even before your SEF component's router, or Joom!Fish's own plugins. If it is not the very first to load, bummer!

b. There must be no output coming from Joomla! before the plugin fires. Making sure that (a) is true pretty much ensures that this will also hold true, unless you are using Joomla!'s page caching plugin. That plugin will short-circuit the plugin execution order and it is possible that our plugin is never called.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user14670
I was able to get the admin plugin to the top of the system type plugins but not all the way to the top of them all. Checked and found that the problem that prompted this posting still exists. Maybe I will just need to wait on Joomla 1.6.

nicholas
Akeeba Staff
Manager
You can give the plugin a negative ordering number, e.g. -100000 and click on the diskette icon in the Order header. This will force it to load before any other plugin in the System group.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user14670
What can I say - still no joy. I have the feeling that it may be a Lighttpd type of issue.

Joomla seems to be optimized for Apache and there may be something in the web server that Joomla is not controlling like it should. In other words this problem may not exist if I was running Apache. Running Apache though gives me a lot of other problems. I may just have to live with this for right now.

nicholas
Akeeba Staff
Manager
Ah, Lighttpd is an odd beast. AFAIK it doesn't allow you to replace a header like Apache does, so there's no way this feature will work without hacking your core Joomla! files.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!