mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Short cache on handlebars templates
Backported from https://github.com/YunoHost/yunohost-config-nginx/pull/5
This commit is contained in:
parent
23354e92bc
commit
032f9c86ed
1 changed files with 6 additions and 0 deletions
|
@ -2,4 +2,10 @@ location /yunohost/admin {
|
||||||
alias /usr/share/yunohost/admin/;
|
alias /usr/share/yunohost/admin/;
|
||||||
default_type text/html;
|
default_type text/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
|
# Short cache on handlebars templates
|
||||||
|
location ~* \.(?:ms)$ {
|
||||||
|
expires 5m;
|
||||||
|
add_header Cache-Control "public";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue