Site src.fedoraproject.org expires

refs: #7629
This commit is contained in:
Alessandro Lorenzi 2019-03-21 23:56:39 +01:00 committed by Kevin Fenzi
parent 08f5b66561
commit 3430d47412
3 changed files with 21 additions and 1 deletions

View file

@ -0,0 +1,5 @@
<Location "/static/vendor/emojione/emojione.sprites.png">
ExpiresActive On
ExpiresDefault "access plus 1 week"
Header append Cache-Control "public"
</Location>

View file

@ -19,3 +19,15 @@
tags:
- fedora-web
- fedora-web/src
- name: Copy some config files for {{website}}
copy: >
src={{item}} dest=/etc/httpd/conf.d/{{website}}/{{item}}
owner=root group=root mode=0644
with_items:
- expires.conf
notify:
- reload proxyhttpd
tags:
- fedora-web
- fedora-web/src

View file

@ -20,6 +20,10 @@
Alias /static/hotspot.txt /srv/web/hotspot.txt
{% endif %}
{% if site_name == "src.fedoraproject.org" %}
Include "conf.d/src.fedoraproject.org/expires.conf"
{% endif %}
{% if sslonly %}
RewriteEngine On
RewriteCond %{REQUEST_URI} !/.well-known/acme-challenge/.*
@ -85,4 +89,3 @@
Include "conf.d/{{ site_name }}/*.conf"
</VirtualHost>
{% endif %}