tonycoco / heroku-buildpack-ember-cli

A Heroku Buildpack for Ember CLI Applications
MIT License
320 stars 121 forks source link

Properly set the `Cache-Control` to `no-cache` for index.html #56

Closed aortbals closed 9 years ago

aortbals commented 9 years ago

This prevents caching index.html across deploys so users get the latest index.html and fingerprinted assets.

index.html was being cached so that after a deploy you would receive a cached file. It would require a full page refresh to get the latest code. I've been running this change in production for a while, and it solves the problem. expires -1 correctly sets Cache-Control: no-cache.

tonycoco commented 9 years ago

Thanks for the heads up! Looks good.