enable caching for Matrix discovery API
This commit is contained in:
parent
0263524db7
commit
942959c75f
@ -332,10 +332,12 @@ http {
|
||||
include snippets/security-headers.conf;
|
||||
add_header Cross-Origin-Resource-Policy "cross-origin" always;
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
add_header Cache-Control "public, max-age=172800";
|
||||
default_type application/json;
|
||||
}
|
||||
|
||||
location = /.well-known/matrix/server {
|
||||
add_header Cache-Control "public, max-age=172800";
|
||||
default_type application/json;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user