Actions
Bug #31240
closedcompressor and clients without gzip as accepted encoding
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-10-24
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
Currently the compressor adds the gzip file encoding depending on the gzip accept-encoding setting of the first client who triggers the page generation. If the second request is triggered by a client who doesn't supports gzip, he will just get garbage.
Possible Solution:
- Always add .gzip as file extension if the compressionLevel is set
- Provide something like the following inside the example .htaccess file
- deliver the uncompressed file if gzip encoding isn't accepted
RewriteCond %{HTTP:accept-encoding} !gzip [NC]
RewriteRule ^typo3temp/scriptmerger/compressed/(.+)\.gz\.(js|css) typo3temp/scriptmerger/uncompressed/$1.$2 [L,NC]
This code was borrowed form the scriptmerger extension and decides the delivered content on a per-client base.
Actions