I'm pointing a CloudFront distribution to my BackboneJS app. This includes index.html, master.css, master.js.
Steps:
- Append ?v=ID to css & js links within index.html
- Deploy index.html, css, js files to origin server.
- Invalidate index.html file @ CloudFront
- Wait for CF to grab new index.html file from server and load the newly versioned assets.
When I deploy, I can bust the master.css and master.js cache by applying a new querystring within the index file. Unfortunately the index.html file cache has to be manually invalidated - a process which Amazon says can take 10-15minutes.
Any tips to instantly change index.html file to latest version on CF?
Thank you!