From 3c7c834a37802e5ca5d93a4b4a91dde3264d9f5d Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 17 May 2020 20:24:09 +0200 Subject: nginx: Add Expires: HTTP headers. --- roles/lists/files/etc/nginx/sites-available/sympa | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/lists/files') diff --git a/roles/lists/files/etc/nginx/sites-available/sympa b/roles/lists/files/etc/nginx/sites-available/sympa index 4cfc11b..89d79f3 100644 --- a/roles/lists/files/etc/nginx/sites-available/sympa +++ b/roles/lists/files/etc/nginx/sites-available/sympa @@ -49,9 +49,9 @@ server { return 302 /sympa$args; } - location ^~ /static-sympa/ { alias /usr/share/sympa/static_content/; } - location ^~ /css-sympa/ { alias /var/lib/sympa/css/; } - location ^~ /pictures-sympa/ { alias /var/lib/sympa/pictures; } + location ^~ /static-sympa/ { expires 30d; try_files $uri =404; alias /usr/share/sympa/static_content/; } + location ^~ /css-sympa/ { expires 30d; try_files $uri =404; alias /var/lib/sympa/css/; } + location ^~ /pictures-sympa/ { expires 30d; try_files $uri =404; alias /var/lib/sympa/pictures; } location ~* ^/sympa(?:/|$) { gzip off; # protect against BREACH -- cgit v1.2.3