[MGNLCACHE-248] The default list of 'compressable' content types is very incomplete Created: 09/Nov/21  Updated: 25/Mar/22

Status: Open
Project: Cache Modules
Component/s: configuration
Affects Version/s: 5.9.4
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Michiel Meeuwissen Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File config.modules.cache.config.compression.voters.contentType.yaml    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[X]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

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.

 


Generated at Sun Feb 11 23:53:39 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.