Issue Bug Closed

#107499ActionController redirectToUri cache control headers are overritten

Rémi Payette 09/19/25, 20:48 updated 09/25/25, 19:10

Description

Hi,

My action controller action method returns :

            return $this->redirectToUri("https://xxxx",0,301)
                ->withHeader('Cache-control', 'max-age=86400')
                ->withHeader('X-Test', 'test');

The browser does receive the 301 but only the X-Test header is present, cache control headers get replaced.

location: https://xxxx
Cache-control: no-cache, no-store
X-Test: test

My goal here is to have the reverse proxy in front of my Typo3 cache the response.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.