apache2: Kopiere Cache-Konfiguration
This commit is contained in:
parent
8372e9d7de
commit
6ee66e6f01
2 changed files with 34 additions and 0 deletions
33
files/sao-cache.conf
Normal file
33
files/sao-cache.conf
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Verwaltet durch Ansible (Rolle "apache2")
|
||||
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive on
|
||||
|
||||
# Favicon (cannot be renamed)
|
||||
ExpiresByType image/x-icon "access plus 1 week"
|
||||
|
||||
# Media: images, video, audio
|
||||
ExpiresByType image/gif "access plus 1 month"
|
||||
ExpiresByType image/png "access plus 1 month"
|
||||
ExpiresByType image/jpg "access plus 1 month"
|
||||
ExpiresByType image/jpeg "access plus 1 month"
|
||||
ExpiresByType video/ogg "access plus 1 month"
|
||||
ExpiresByType audio/ogg "access plus 1 month"
|
||||
ExpiresByType video/mp4 "access plus 1 month"
|
||||
ExpiresByType video/webm "access plus 1 month"
|
||||
|
||||
# Webfonts
|
||||
ExpiresByType application/x-font-ttf "access plus 1 month"
|
||||
ExpiresByType font/opentype "access plus 1 month"
|
||||
ExpiresByType application/x-font-woff "access plus 1 month"
|
||||
ExpiresByType image/svg+xml "access plus 1 month"
|
||||
|
||||
# CSS and JavaScript
|
||||
ExpiresByType text/css "access plus 1 month"
|
||||
ExpiresByType text/javascript "access plus 1 month"
|
||||
ExpiresByType application/javascript "access plus 1 month"
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
Header append Cache-Control "public"
|
||||
</IfModule>
|
||||
</IfModule>
|
|
@ -16,4 +16,5 @@
|
|||
loop:
|
||||
- add-headers.conf
|
||||
- letsencrypt.conf
|
||||
- sao-cache.conf
|
||||
- ssl.conf
|
||||
|
|
Loading…
Reference in a new issue