Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.html [QSA,L]

# Files in assets/ get a new name every build, so browsers can keep them for a
# year without ever seeing a stale one. Everything else (index.html, the cat
# picture...) keeps the server's normal behaviour.
<IfModule mod_headers.c>
  <If "%{REQUEST_URI} =~ m#/assets/#">
    Header set Cache-Control "public, max-age=31536000, immutable"
  </If>
</IfModule>
