Howdy, I've got a small site running on Heroku and would like to set far- future Cache-Control headers and need to set Vary: Accept-Encoding on my plaintext static assets. I don't intend to serve from S3 or a CDN: my traffic isn't close to worth it. That said, for those couple thousand who do traffic my site, I'd like to do my best without investing any additional funds.
I have a tiny Rack middleware for my rails app that drops in Cache- Control and Vary headers for my static assets, and it works just fine locally. After deploying to Heroku, those headers are no longer present. They've been replaced with Varnish's 12-hour Cache-Control header, which is really quite low for a production site, especially when I've already got asset timestamping doing cache-busting. How can I set a far-future cache-control header and not have it get clobbered by Varnish? Thanks, Mike Edgar http://carboni.ca/ -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.