Problem statement
The set of middlewares that we have enabled by default keeps growing (the latest one is #633). Eventually, the project template/boilerplate code will grow a lot.
Proposed solution
Let's create a "CommonMiddleware" (akin to Django's CommonMiddleware) that just consolidates the enabled-by-default middlewares.
We should also have a flag in config.toml that allows to enable or disable each child middleware from CommonMiddleware.
Alternatives considered
No response
Drawbacks
No response
Additional context
No response
Problem statement
The set of middlewares that we have enabled by default keeps growing (the latest one is #633). Eventually, the project template/boilerplate code will grow a lot.
Proposed solution
Let's create a "CommonMiddleware" (akin to Django's CommonMiddleware) that just consolidates the enabled-by-default middlewares.
We should also have a flag in config.toml that allows to enable or disable each child middleware from CommonMiddleware.
Alternatives considered
No response
Drawbacks
No response
Additional context
No response