[TYPO3-core] RFC #14277: Improve t3lib_compressor

Steffen Gebert steffen at steffen-gebert.de
Sun May 2 01:20:58 CEST 2010


Hi,

This is a SVN patch request.

Type: Feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=14277

Branches: trunk

Problem:
Loading the backend needs 1.5MB download

Solution:
Improve t3lib_compressor by
* also gzipping JS files (e.g. ExtJS > 600K)
* changing inclusion of ExtJS CSS to be also compressable for us

Note:
Before: 1492K
After: 518K

You need to set $TYPO3_CONF_VARS['BE']['compressionLevel'] to enable gzip  
compression.
If not set by your default configuration, you have to add this to your  
.htaccess

AddEncoding gzip .gz
<FilesMatch "\.js\.gz$">
   AddType "text/javascript" .gz
</FilesMatch>
<FilesMatch "\.css\.gz$">
   AddType "text/css" .gz
</FilesMatch>


Thanks
Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 14277_v2.diff
Type: text/x-diff
Size: 11837 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100502/64c8696e/attachment.diff>


More information about the TYPO3-team-core mailing list