Allow browser caching for static contents

This commit is contained in:
Mansoor A 2018-05-06 11:16:53 +05:30
parent 7c62f4b8e9
commit 62d9272c05
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@
access_log off;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 30d;
add_header Cache-Control "public";
}
location = /mailinabox.mobileconfig {
alias /var/lib/mailinabox/mobileconfig.xml;
}