heroku / heroku-buildpack-emberjs

**This buildpack is deprecated!** Please use the official Node.js buildpack combined with the static or nginx buildpack instead.
71 stars 28 forks source link

No cache control header set on index.html #42

Closed Subtletree closed 7 years ago

Subtletree commented 7 years ago

Deploying with this buildpack on dokku, my index.html is being cached due to no cache-control header.

Is this something the buildpack should be doing automatically or is there some config for this?

Cheers 🙂

hone commented 7 years ago

Weird. By design, the static buildpack isn't setting any default caching headers, but it looks like dokku is?

Subtletree commented 7 years ago

Sorry I meant the index.html does not have a cache-control header so it is being cached by default.

Thanks for pointing me to the static buildpack to configure this.

For future (non fastboot) readers: https://github.com/heroku/heroku-buildpack-static#custom-headers