Hello Claus,

well I was aware of mod_deflate but I want to use a pre-compressed files to avoid unneccesary server loads.

I'll have a look at my providers apache configuration if I'm able to configure mod_deflate within .htaccess. If not this is not an option for me.

Thank you.


Claus Augusti schrieb:

Hello Dietrich,

what compression module are you using - almost seems you not using one at all? It does the content type negotiation, i.e. find out about client capabilities, if it accepts gzip then send it, otherwise sent the normal file. There's absolutely no need to have both files sitting around in your space, once it's compressed it's cached automatically. Look at the mod_deflate doc at http://httpd.apache.org/docs/2.0/mod/mod_deflate.html.

Regards,
Claus

Dietrich Streifert wrote:

Hello List,

maybe someone can enlight me regarding the delivery of compressed qooxdoo.js by apache2 servers.

What I found right now:

If you want to use the compressed qooxdoo.js.gz you have to configure the following ( eg. in .htaccess or httpd.conf ):

AddEncoding x-gzip .gz
AddEncoding gzip .gz

This can be done ( minimal invasive ) in the qooxdoo/public/script director in a .htaccess file.

The test is to access the url (depending on your server and paths):

http://testserver/qooxdoo/public/script/qooxdoo.js.gz or
http://testserver/qooxdoo/public/script/qooxdoo.js

Then this should show the javascript file content as text (FireFox) or ascked to open the file of type Javascript (InternetExploerer) because the client unpacks the content.

This is only true if the configuration option "MultiViews" is active ( eg. in .htaccess or httpd.conf ) because the server does not find a file named
qooxdoo.js but does a name/type matching and delivers the closest match.

This works just if we NOT also have the file qooxdoo.js in the same directory. If qooxdoo.js is present this gets the precedence over the packed one.

If MultiViews is disabled we have to reference the qooxdoo.js.gz file directly in the <script> tag.

Is there any way to leave both files there and have some automatic tweak which allows to use the compressed version for browsers which are capable of uncompressing gzipped files and the plain version for browsers which are not gzip aware?

Or simpler: is there a way to leave both files in there and let the server deliver the compressed version if it is available and if not deliver the uncompressed? The scriptname referenced in the <script> tag should allways be qooxdoo.js.

Thank you for your help.

Best Regards....




--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to