I'm creating a Rails application which will be deployed to desktop
machines, running both the webserver and the browser (it's a test-
taking application which needs to be able to run without an internet
For this reason, I'll be running Mongrel or WEBRick, without an Apache/
Nginx in front of it as you would normally do. The browser will access
the Mongrel directly.
The problem I'm facing now is that it takes a while to load assets
future expiry dates on these assets in the Apache proxy in front of
the Mongrel/WEBRick, so that the assets are only requested once, and
after that there is only one request per action.
But in this case, there is no proxy, and i'm using
config.serve_static_assets = true
So the question is: is it possible to tell Mongrel/WEBrick to slap far-
future expiry headers on the static assets?
I'm using Rails 3 on Ruby 1.9.2.