Well, firstly, I believe that this bit of code should be placed inside the initializer, as this is just a configuration:
Rack::Offline.configure do cache "images/masthead.png" public_path = Rails.public_path Dir[public_path.join("javascripts/*.js")].each do |file| cache file.relative_path_from(public_path) end network "/" end
To answer your question about maintaining your compiled assets, they are accessible from a browser, so all you have to do is provide a cache instruction manually, and everything should work. Try using this configuration:
Rack::Offline.configure do cache "assets/application.js" cache "assets/application.css" network "/" end
source share