Giter Club home page Giter Club logo

Comments (5)

lochmueller avatar lochmueller commented on June 2, 2024 1

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.

lochmueller avatar lochmueller commented on June 2, 2024

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.

claude27 avatar claude27 commented on June 2, 2024

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:
grafik

grafik

grafik

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.

claude27 avatar claude27 commented on June 2, 2024

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.

jonakieling avatar jonakieling commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.