...
 
Commits (2)
...@@ -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>
......