Comments (5)
Hey @jonakieling . Good point. But I think it is not a problem of the file/line length of the htaccess file. I think it is a problem in the max header size of the Webserver (RFC). E.g. https://www.tutorialspoint.com/What-is-the-maximum-size-of-HTTP-header-values
Perhaps the list of cache tags are more than the 8K. We could also check the length of the header values and trim it to the max length value.
Regards,
Tim
from staticfilecache.
Hey @claude27 ,
do you use thi extension: https://extensions.typo3.org/extension/fluid_page_cache
Or what is the reason for the huge amount of tags? The "explanation" should not be the problem. It is just one tag.
I think the headers are fetched here from the response: https://github.com/lochmueller/staticfilecache/blob/master/Classes/Generator/HtaccessGenerator.php#L31 Perhaps we should check the length in front of the template assignment?
Please keep also in mindm that the X-SFC-Headers are debug headers. Do you try to disable the debug option?
https://github.com/lochmueller/staticfilecache/blob/master/Classes/Middleware/GenerateMiddleware.php#L128
Regards,
Tim
from staticfilecache.
Hey @lochmueller ,
thank you for your fast answer.
No, I don't use the fluid_page_cache Extension.
The reason is that on this page there are 33 standard text&media content elements with round about 150 images.
Debug Headers is disabled – here some screenshots:
I'm really wondering why the X-SFC-Headers are showing up in the htaccess File, especially as I don't have enabled any debug setting.
from staticfilecache.
PS: I have now changed the setting basic.validHtaccessHeaders (string) to Content-Type,Content-Language,Link
so the problem is now solved for me.
I changed it recently to the standard setting because of another error. Unfortunately I currently don't remember what the problem was. I will think about it, I hope I remember.
from staticfilecache.
Hey,
we encountered the same issue when using b13/menues which added all the menu cache tags to the X-SFC-Tags header.
Removing X-SFC-Tags from the valid headers list works.
Does anyone know what the line length limit for htaccess files is? I can't find any documentation on this. With that info we could add linebreaks to the htaccess file.
from staticfilecache.
Related Issues (20)
- Version 12.5.0 is not in TER HOT 2
- No SFC and custom headers when using the fallback middleware HOT 6
- ActionMenuViewHelper extends from final class HOT 1
- TYPO3 12 HOT 1
- False (?) INTincScript warning with TYPO3 12 HOT 10
- TER release version 13 HOT 6
- Workspace Preview not working HOT 3
- HttpOnly flag for cookies HOT 1
- Warning INTScript TYPO3 11 HOT 2
- Add .css.gz and .js.gz to .htaccess example HOT 1
- Parse Error: Classes/Service/CookieService.php HOT 2
- .gz conflict with compressed core files HOT 1
- Core: Exception handler (CLI): Uncaught TYPO3 Exception Error HOT 2
- Commands should follow Interface constraints from `symfony/console:v7` HOT 1
- compatibility issue within the 'execute' method of a Command in Symfony Console version 7 HOT 1
- staticfilecache breaks on symfony/console v7.0.3 HOT 1
- TYPO3 v13: TypoScriptFrontendController::isStaticCacheble() is now internal HOT 1
- Fatal error after Update to symfony/console v7.0.4 HOT 1
- Docu htaccess file HOT 1
- PHP Warning: rename HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from staticfilecache.