Commit f67085b9 authored by Phil Hofmann's avatar Phil Hofmann

Merge branch 'alephdam-and-caching' into 'master'

Redirect /aleph-dam to https://alephdam.200ok.ch

See merge request !135
parents d0357c5c 82d99d01
Pipeline #5783 passed with stage
in 2 minutes and 56 seconds
...@@ -4,6 +4,8 @@ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] ...@@ -4,6 +4,8 @@ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
ErrorDocument 404 /404.html ErrorDocument 404 /404.html
RedirectMatch 302 /aleph-dam https://alephdam.200ok.ch
<IfModule mod_expires.c> <IfModule mod_expires.c>
ExpiresActive On ExpiresActive On
...@@ -25,11 +27,17 @@ ExpiresByType application/javascript "access plus 1 month" ...@@ -25,11 +27,17 @@ ExpiresByType application/javascript "access plus 1 month"
# CSS # CSS
ExpiresByType text/css "access plus 1 month" ExpiresByType text/css "access plus 1 month"
# Do not cache app.css # Do not cache app.css, index.html and blog.html
# TODO: A better solution would be to cache it and use query strings to update to new versions # TODO: A better solution would be to cache it and use query strings to update to new versions
<FilesMatch "\.(app.css)$"> <FilesMatch "\.(app.css)$">
ExpiresActive Off ExpiresActive Off
</FilesMatch> </FilesMatch>
<FilesMatch "\.(index.html)$">
ExpiresActive Off
</FilesMatch>
<FilesMatch "\.(blog.html)$">
ExpiresActive Off
</FilesMatch>
</IfModule> </IfModule>
<IfModule mod_deflate.c> <IfModule mod_deflate.c>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment