libravatar: enable client caching for static/img

This commit is contained in:
clime 2019-03-08 16:42:04 +01:00
parent 4659d4ae7d
commit 09637fadd7

View file

@ -12,6 +12,14 @@ RewriteEngine on
Alias "/nobody" "/srv/libravatar/static/img/nobody"
<Directory /srv/libravatar/static/img>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "A86400"
Header merge "Cache-Control" "public"
</IfModule>
</Directory>
<VirtualHost *:80>
ServerName {{ server_name }}
ServerAlias {{ server_redirect_name }}