Closed kraemer-igroup closed 1 year ago
Hi there,
I noticed an issue with TYPO3 v12 and the changed file extension of compressed files from .gzip to .gz (https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Breaking-93182-ChangedFileExtensionForGzipCompressedFiles.html).
The corresponding .htaccess rules get overridden by the suggested staticfilecache configuration, which forces the type text/html for all .gz files:
<FilesMatch "\.gz$"> ForceType text/html # AddType "text/html" .gz </FilesMatch>
A solution could be, that the suggested staticfilecache configuration also provides correct file types for .js.gz and .css.gz:
.js.gz
.css.gz
<FilesMatch "\.gz$"> ForceType text/html # AddType "text/html" .gz </FilesMatch> <FilesMatch "\.js\.gz$"> ForceType text/javascript # AddType "text/javascript" .gz </FilesMatch> <FilesMatch "\.css\.gz$"> ForceType text/css # AddType "text/css" .gz </FilesMatch>
Good point... fixed with next commit.
Hi there,
I noticed an issue with TYPO3 v12 and the changed file extension of compressed files from .gzip to .gz (https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Breaking-93182-ChangedFileExtensionForGzipCompressedFiles.html).
The corresponding .htaccess rules get overridden by the suggested staticfilecache configuration, which forces the type text/html for all .gz files:
A solution could be, that the suggested staticfilecache configuration also provides correct file types for
.js.gz
and.css.gz
: