Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230107

Web Server Cache Issue with Ionic App

$
0
0

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>

Viewing all articles
Browse latest Browse all 230107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>