Added caching headers on front urls

This commit is contained in:
Eliot Berriot 2018-12-20 15:59:55 +01:00
parent 0201b73b10
commit e1f02ede35
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,9 @@ server {
location /front/ { location /front/ {
alias /frontend/; alias /frontend/;
expires 30d;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
} }
location /federation/ { location /federation/ {

View File

@ -87,6 +87,9 @@ server {
location /front/ { location /front/ {
alias ${FUNKWHALE_FRONTEND_PATH}/; alias ${FUNKWHALE_FRONTEND_PATH}/;
expires 30d;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
} }
location /federation/ { location /federation/ {