Here custom mime types are added to the current request's existing types.
However the Request stores those formats in a static attribute.
This is fine with FPM, however with FrankenPHP :
Request::getMimeTypes returns types [A, B]
$request->setFormat($format, $mimeTypes); set the new types to [A, B, C]
- For the next request
Request::getMimeTypes returns [A, B, C]
$request->setFormat($format, $mimeTypes); set the new types to [A, B, C, C]
- (etc...)
Here custom mime types are added to the current request's existing types.
However the
Requeststores those formats in a static attribute.This is fine with FPM, however with FrankenPHP :
Request::getMimeTypesreturns types[A, B]$request->setFormat($format, $mimeTypes);set the new types to[A, B, C]Request::getMimeTypesreturns[A, B, C]$request->setFormat($format, $mimeTypes);set the new types to[A, B, C, C]