From 78dc0938bff35809255c1d6c4589b7bc52ec2dd4 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Sat, 12 Sep 2020 18:59:35 +0200 Subject: [PATCH] Better caching for static dokuwiki images --- roles/web/files/vhost | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/web/files/vhost b/roles/web/files/vhost index 671dbb7..22d5952 100644 --- a/roles/web/files/vhost +++ b/roles/web/files/vhost @@ -55,6 +55,10 @@ server { deny all; } + location ~ ^/wiki/lib.*\.(gif|png|ico|jpg)$ { + expires 31d; + } + location /static { autoindex on; }