This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Add ability to set response attributes on a per-route basis #1354
Open
Description
There's a desire to set certain response attributes on a per-route basis. E.g. the Cache-Control
header, other headers, response type, etc.
A few ideas:
- Handle it with middleware
- Export some function or setting in a page or layout or call some function there
- Do it in a config file
- Expose the router and allow configuring it