lochmueller / staticfilecache

🚀 Fastest TYPO3 Extension ever 🚀
https://packagist.org/packages/lochmueller/staticfilecache
GNU General Public License v3.0
117 stars 65 forks source link

http2 // .htaccess: Unrecognized header format %C #416

Closed mweber1973 closed 1 month ago

mweber1973 commented 5 months ago

Bug Report

An error occurs (".htaccess: Unrecognized header format %C") when using http/2 and special chars (German "Umlauts") occur in the header defined in the htaccess for each path.

Here is an example htacces, which was generates from staticfilecache

`ForceType text/html

Header set Content-Type "text/html; charset=utf-8" Header set Content-Language "de-DE" Header set X-SFC-Tags "pageId_81" Header set Link "; rel=preload; as=style, ; rel=preload; as=script, ; rel=preload; as=script, ; rel=preload; as=script, ; rel=preload; as=script, ; rel=preload; as=script, ; rel=preload; as=image, ; rel=preload; as=image, ; rel=preload; as=image, ; rel=preload; as=image" ` **Environment** - TYPO3 version(s): 12.4 - staticfilecache version: 14.0.1 - Is your TYPO3 installation set up with Composer (Composer Mode): no **Possible Solution** Disbale http/2 in staticfilecache
lochmueller commented 5 months ago

Hmm... I think TYPO3 backend cleanup german umlauts, so the file names should be clean (do you try this)?! Do you use files, that aren't uploaded via TYPO3 backend or from old TYPO3 versions? Regards, Tim

mweber1973 commented 5 months ago

All files were uploaded via Typo3, not via FTP.

Perhaps we can get in contact so you can have look in the backend to reproduce the error?

lochmueller commented 5 months ago

All files were uploaded via Typo3, not via FTP.

Perhaps we can get in contact so you can have look in the backend to reproduce the error?

Feel free to write me, via TYPO3 Slack...