diff --git a/nginx/sites-available/pc-dev.conf b/nginx/sites-available/pc-dev.conf index cd8a43d..3a8b4fc 100644 --- a/nginx/sites-available/pc-dev.conf +++ b/nginx/sites-available/pc-dev.conf @@ -37,7 +37,7 @@ server { location /static { alias /home/pc-dev/www/app/static; try_files $uri =404; - expires 7d; + expires 10m; add_header Cache-Control "public"; include gzip.conf; } @@ -46,7 +46,7 @@ server { location /avatar { root /home/pc-dev/data; try_files $uri /avatar/default_avatar.png =404; - expires max; + expires max; # avatars have their own cache control system add_header Cache-Control "public"; include gzip.conf; } @@ -55,7 +55,7 @@ server { location /fichiers { alias /home/pc-dev/data/fichiers; try_files $uri =404; - expires 7d; + expires max; add_header Cache-Control "public"; include gzip.conf; }