Skip to content

Commit

Permalink
use HTTP 307 instead of 301 in order to avoid aggressive caching
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed Dec 3, 2024
1 parent 9346630 commit 85694b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public ResponseEntity<Void> handleCode(@PathVariable String eventName, @PathVari
return backToEvent.build(Map.of("eventShortName", eventName)).toString();
}
);
return ResponseEntity.status(HttpStatus.MOVED_PERMANENTLY).header(HttpHeaders.LOCATION, url).build();
return ResponseEntity.status(HttpStatus.TEMPORARY_REDIRECT).header(HttpHeaders.LOCATION, url).build();
}

private static HttpHeaders getCorsHeaders() {
Expand Down

0 comments on commit 85694b8

Please sign in to comment.