Reputation: 11439
I want to serve an Angular application through Cloudfront, when i make a modification to an html file, what is the best way to serve the latest version of this file ?
I use grunt-filerev to versions assets but it cannot version html files. Is it possible to do cache busting also on html files ?
I understand that it implies to parse and replace templateUrl for the routeProvider. Is there any way to do this elegantly, or should i just rely on http cache headers ?
Upvotes: 0
Views: 1613
Reputation: 32377
I use gulp-rev-all.
You need to follow this guideline:
( FOLDER + '/page.html' )
, always refer to files by full relative path.Upvotes: 1