即使我已经掠夺了资产:预编译了我所有的资产,但我似乎仍然很难获得heroku来正确缓存它们。我总是从我的日志中得到诸如Rails 3.1资产在heroku上缓存
2011-06-04T16:40:20+00:00 app[web.1]: cache: [GET /assets/application-516c0fa9926527ab92d849148e557ee6.css] stale, invalid, store
2011-06-04T16:40:22+00:00 app[web.1]: cache: [GET /assets/logo-3a84e73bd76ca1ab9629d0a92eac7d4f.png] stale, invalid, store
。虽然当我检查萤火虫时,好像我正在收到HTTP 304。我做错了什么?
在Heroku的Cedar烟囱上不使用清漆。 http://devcenter.heroku.com/articles/http-caching – Jared 2011-11-19 17:50:46
thx。更新的答案以反映杉木堆栈 – oma 2012-03-21 16:07:24