use 301 redirect with 1 day caching for Discord
There are scenarios where we may have to change the URL so the default 301 behavior is inappropriate but this will work fine.
This commit is contained in:
parent
02a97dd883
commit
6fbd66ddfa
@ -281,7 +281,9 @@ http {
|
||||
}
|
||||
|
||||
location = "/discord" {
|
||||
return 302 https://discord.com/invite/grapheneos;
|
||||
include snippets/security-headers.conf;
|
||||
add_header Cache-Control "public, max-age=86400";
|
||||
return 301 https://discord.com/invite/grapheneos;
|
||||
}
|
||||
|
||||
location = /404 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user