From 0b07bfe6681970fe55cf30f02099bc743a11f41d Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Thu, 11 May 2017 09:54:30 +0200 Subject: [PATCH] Add favicon --- ansible/roles/web/templates/nginx.conf.j2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ansible/roles/web/templates/nginx.conf.j2 b/ansible/roles/web/templates/nginx.conf.j2 index 9c93d62..aedb183 100644 --- a/ansible/roles/web/templates/nginx.conf.j2 +++ b/ansible/roles/web/templates/nginx.conf.j2 @@ -32,15 +32,14 @@ server { } location /favicon.ico { - access_log off; expires 864000; + access_log off; expires max; alias {{ release_dir }}/static/images/favicon.ico; } # Only serve /media/images by default, not e.g. original_images/. location /media/images { alias {{ release_dir }}/media/images; - access_log off; - expires max; + access_log off; expires max; add_header Cache-Control "public"; }