Skip to content

Commit 61fac4e

Browse files
committed
Do not cache redirect responses (#48)
1 parent c18bf4b commit 61fac4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controller/FallbackController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public function __invoke()
2727
$route = $this->findRouteByUrl($localizedUrl);
2828

2929
if ( ! $route->isFallback) {
30-
return Redirect::to($localizedUrl, Config::get('localized-routes.redirect_status_code', 301));
30+
return Redirect::to($localizedUrl, Config::get('localized-routes.redirect_status_code', 301))
31+
->header('Cache-Control', 'no-store, no-cache, must-revalidate');
3132
}
3233
}
3334

0 commit comments

Comments
 (0)