Issue #3202583: Views cache settings not added to headers
Fixes #3202583. Views cache settings (tags, contexts, max-age) are now correctly propagated to the JSON:API response.
- Derives cacheability from the view's own render array instead of the broken
$view->resultbased collection - Contextual filters keyed to the current user no longer leak across users
- 403 responses now carry proper cache tags and contexts too
Builds on yahyaalhamad's patch (comment #11). Tests green on D10 and D11.