Include Cache-Control header on 301 redirects
Starting from patch 43 state in https://www.drupal.org/project/drupal/issues/3054821#comment-15082676.
Additional feedback changes based on:
- https://www.drupal.org/project/drupal/issues/3054821#comment-13652107
- https://www.drupal.org/project/drupal/issues/3054821#comment-15375876
and going onwards, starting from !5963 (75f935d1)
Closes #3054821
Edited by Gary Gao