I have been using http://www.webpagetest.org/ to test page load performance issues and I thoroughly recommend it. I now need to get the main html pages served up by our WO app to be deflated. I am not using Wonder so want to use apache to do this.
My deployment is on Amazon Linux and I don't have any file like .../WebObjects/Adaptors/Apache2.2/apache.conf that I can find. All config is in httpd.conf for Apache 2.2. The usual attempts to deflate by file type or by embedded header Content-Type doesn't work, as others found below. Is there a way I can tell the WO adaptor specifically to deflate it's output? Or is there a file I can create to add the "SetOutputFilter DEFLATE" line to that will be read by the WO adaptor (which is in /usr/lib64/httpd/modules/mod_WebObjects.so). Many thanks, John On 24 Feb 2011, at 07:47, Gennady Kushnir wrote: > Thank you. > Sorry for long delay after your responses. > > Simply setting SetOutputFilter DEFLATE also did work for me. > previously I tried > AddOutputFilterByType DEFLATE text/html ...etc... > Though it worked for static resources it failed to deflate dynamic > ones. Maybe that is because apache doesn't read headers for plugin > generated responses? > > Regards, > Gennady Kushnir > > 2011/2/15 Patrick Middleton <[email protected]>: >> >> On 15 Feb 2011, at 09:54, Patrick Middleton wrote: >> >>> >>> On 14 Feb 2011, at 18:27, Gennady Kushnir wrote: >>> >> ... >>> >>> Is this a module load order problem? Which version of Apache have you >>> got? Is mod_deflate.so loaded before mod_WebObjects.so, or after? >> >> Further research reveals that while module load order was very significant >> for Apache 1.3 (mod_rewrite et al), it's not significant for Apache 2.2, >> where modules can specify their own hook ordering preferences. The easiest >> way of seeing what's going on is to enable mod_info. After doing that, I >> saw that many modules in their configuration stanzas had this: >> SetOutputFilter DEFLATE >> while mod_WebObjects (for me, configured via >> /Library/WebObjects/Adaptors/Apache2.2/apache.conf) did not. After adding >> it, deflate now works for me with WO-generated content. >> >>> >>>> >>>> 2011/2/14 Timo Hoepfner <[email protected]>: >>>>> >>>>> If it's a Wonder app, add this to you Properties and you're done: >>>>> >>>>> er.extensions.ERXApplication.responseCompressionEnabled=true >>>>> >>>>> Timo >>>>> >>>>> Am 14.02.2011 um 09:59 schrieb Gennady Kushnir: >>>>> >>>>>> Hello list! >>>>>> I've just tried to compress traffic produced by my WOApp but I only >>>>>> succeeded in compressing static resources (css and js). >>>>>> Here is my configuration fragment. >>>>>> >>>>>> <IfModule mod_deflate.c> >>>>>> AddOutputFilterByType DEFLATE text/html application/xhtml+xml >>>>>> text/plain text/xml \ >>>>>> text/css text/javascript application/x-javascript >>>>>> application/javascript >>>>>> </IfModule> >>>>>> >>>>>> Does anybody know what should be written to Apache mod_deflate >>>>>> configuration so that it also compress WO-generated pages? >>>>>> >>>>>> Regards, >>>>>> Gennady >> >> >> >> This email, including any attachments, is confidential and intended solely >> for the person or organisation to whom it is addressed. If you are not the >> intended recipient you must not disseminate, distribute or copy any part of >> this email nor take any action in reliance on it. >> >> If you have received this in error please notify the sender immediately by >> email or phone +44 (0)1702 426400 and delete this email and any attachments >> from your system. >> >> Email transmission cannot be guaranteed to be secure or error-free as >> information could be intercepted, corrupted, lost, destroyed, arrive late or >> incomplete, or contain viruses. The sender therefore does not accept >> liability for any errors or omissions in the contents of this message which >> arise as a result of email transmission. If verification is required please >> request a hard-copy version. >> >> OneStep Solutions LLP is registered in England and Wales under registration >> number OC337173 and has its registered office at 457 Southchurch Road, >> Southend-on-Sea, Essex SS1 2PH. >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/genkush%40rujel.net >> >> This email sent to [email protected] >> > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/john%40pollardweb.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-deploy mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com This email sent to [email protected]
