Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.gz conflict with compressed core files #402

Closed
kraemer-igroup opened this issue Nov 7, 2023 · 1 comment
Closed

.gz conflict with compressed core files #402

kraemer-igroup opened this issue Nov 7, 2023 · 1 comment
Labels

Comments

@kraemer-igroup
Copy link

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:

<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>
@lochmueller
Copy link
Owner

Good point... fixed with next commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants