t3n / neos-debug

Adds a debug panel to your Neos CMS website
MIT License
30 stars 16 forks source link

BUGFIX: Only add debug output to html #120

Closed Sebobo closed 3 years ago

Sebobo commented 3 years ago

Resolves: #57

Sebobo commented 3 years ago

This branch is based upon #119 that's why there is another commit in here

Sebobo commented 3 years ago

@johannessteu do you think the supported content types should be configurable? I'm not sure if there are more than text/html that are really compatible.

johannessteu commented 3 years ago

Let's start with text/html and add a configuration if we need it at some point?

Sebobo commented 3 years ago

Sadly it doesn't work like this.

The content type of the response is not yet available during the renderCacheInfoIntoSegment part. Therefore it's always text/html and not the type set in Fusion.

I think the only way to fix this is to remove the output in a HTTP Component.