Bug #24690

t3lib_compressor should write .htaccess

Added by Steffen Gebert over 4 years ago. Updated over 4 years ago.

Status:Closed Start date:2011-01-20
Priority:Should have Due date:
Assigned To:Ernesto Baschny % Done:

0%

Category:- Spent time: -
Target version:4.5.0
TYPO3 Version: Is Regression:
PHP Version: Sprint Focus:
Complexity:

Description

t3lib_compressor should write .htaccess

<FilesMatch "\.(js|css)(\.gzip)?$"> 
        <IfModule mod_expires.c>
                ExpiresActive on
                ExpiresDefault "access plus 7 days" 
        </IfModule>
        FileETag MTime Size
</FilesMatch>

(issue imported from #M17175)

17175.diff Magnifier (1 kB) Administrator Admin, 2011-01-21 00:35


Related issues

duplicated by Core - Bug #24639: Add Expires header to .htaccess Closed 2011-01-18

History

#1 Updated by Steffen Gebert over 4 years ago

We'll drop this patch for now to come up with a solution in the _.htaccess file.

#2 Updated by Ernesto Baschny over 4 years ago

As decided later on in a Skype meeting with Christian Kuhn, Steffen Gebert and myself, we added this feature and made if configurable at the end:

$TYPO3_CONF_VARS['SYS']['generateApacheHtaccess']=1 (default)

Committed to trunk, rev. 10212

Also available in: Atom PDF