From 09637fadd74427312b0a675efd6c48a32ff74de9 Mon Sep 17 00:00:00 2001 From: clime Date: Fri, 8 Mar 2019 16:42:04 +0100 Subject: [PATCH] libravatar: enable client caching for static/img --- roles/libravatar/templates/httpd/libravatar.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/libravatar/templates/httpd/libravatar.conf b/roles/libravatar/templates/httpd/libravatar.conf index 555a5d94e9..0245df1069 100644 --- a/roles/libravatar/templates/httpd/libravatar.conf +++ b/roles/libravatar/templates/httpd/libravatar.conf @@ -12,6 +12,14 @@ RewriteEngine on Alias "/nobody" "/srv/libravatar/static/img/nobody" + + + ExpiresActive On + ExpiresDefault "A86400" + Header merge "Cache-Control" "public" + + + ServerName {{ server_name }} ServerAlias {{ server_redirect_name }}