Corrected Version
Thanks,
Regarding Index.html, every time I run an Ionic build or use ionic build --prod
, it always generates the same HTML file. How do I ensure there are new hash in the file?
Regarding the server, we are doing the following via the .htaccess file:
# Enable URL rewriting
RewriteEngine On
# Redirect all HTTP requests to HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Allow access to existing files and directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# Redirect all other requests to index.html
RewriteRule ^ index.html [L]
<IfModule mod_headers.c>
Header set Cache-Control "private"
</IfModule>