[TYPO3-core] RFC #14247: Add a compressor/concatenator for CSS and JS

Simon Schaufelberger schaufelberger at punkt.de
Wed Jan 19 15:51:01 CET 2011


Can compression with that function also be enabled for the frontend?

Typoscript:

> reset = fileadmin/templates/css/reset.css
> reset.forceOnTop = 1
> reset.compress = 1

this works already but the compression does not work.

Am 02.05.2010 01:25, schrieb Steffen Gebert:
> Am 29.04.2010, 00:13 Uhr, schrieb Steffen Gebert
> <steffen at steffen-gebert.de>:
>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=14247
>>
>> Solution:
>> Merge the stylesheets together.
>
> Thanks for committing!
>
> Please set SVN properties for class.t3lib_compress.php
>
> We have to mention this in NEWS.txt, Benni do you take care?
>
> To enable compression of the Backend Stylesheets and JavaScript, you
> have to set $TYPO3_CONF_VARS['BE']['compressionLevel'].
> As this feature heavily decreases the download sizes, you want to enable
> this!
> Dependent on the server's configuration, you also have to add the
> following lines to .htaccess:
>
> AddEncoding gzip .gz
> <FilesMatch "\.js\.gz$">
> AddType "text/javascript" .gz
> </FilesMatch>
> <FilesMatch "\.css\.gz$">
> AddType "text/css" .gz
> </FilesMatch>
>
> Thanks!
> Steffen

-- 
Kind regards,

Simon Schaufelberger (Schaufi) from punkt.de


More information about the TYPO3-team-core mailing list