Added support to serve redirects with status 301 and Cache-Control

This commit is contained in:
Alejandro Celaya
2020-06-17 19:01:56 +02:00
parent 186168b26c
commit 68db52679b
6 changed files with 66 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
declare(strict_types=1);
use const Shlinkio\Shlink\Core\DEFAULT_REDIRECT_STATUS_CODE;
use const Shlinkio\Shlink\Core\DEFAULT_SHORT_CODES_LENGTH;
return [
@@ -15,6 +16,8 @@ return [
'anonymize_remote_addr' => true,
'visits_webhooks' => [],
'default_short_codes_length' => DEFAULT_SHORT_CODES_LENGTH,
'redirect_status_code' => DEFAULT_REDIRECT_STATUS_CODE,
'redirect_cache_lifetime' => 30,
],
];