Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-248

The default list of 'compressable' content types is very incomplete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 5.9.4
    • configuration

      Steps to reproduce 

      1.  The list of compressible content types in config.modules.cacheconfig.compression.voters.contentType is on default this:
      'contentType':
        'class': 'info.magnolia.voting.voters.ResponseContentTypeVoter'
        'allowed':
          '1': 'text/html'
          '2': 'application/x-javascript'
          '3': 'text/css'
          '4': 'application/javascript'
       

      Which is quite incomplete.  Things like application/xml, text/plain, application/rss+xml and application/json  are very well compressible, and I would have expected them to be included in this default.

      Workaround

      We can of course replace this with our own configuration. I'll attach a yaml which we will end up using.

       

        Acceptance criteria

              Unassigned Unassigned
              mihxil Michiel Meeuwissen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:

                  Bug DoR
                  Task DoD