platformsh / example-typo3

Starter kit for running TYPO3 on Platform.sh. Maintained by the TYPO3 Community Interest Group (CIG Platform.sh)
http://platform.sh/
GNU General Public License v3.0
16 stars 9 forks source link

Support gzip compression on TYPO3 generated/compressed assets #23

Closed QuingKhaos closed 7 years ago

QuingKhaos commented 7 years ago

This is equivalent to the standard .htaccess rule from TYPO3 below regarding those files, expect it's restricted to be supported only within typo3temp/assets, which is basically the only path where this files are generated.

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

Fixes #22