Header set Cache-Control "max-age=31536000, public" RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/api RewriteCond %{REQUEST_URI} !^/sitemap\.xml RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ /index.html [L]