Forum: Ruby on Rails Using rack-offline with the asset pipeline (images not cached)

Cca068efe0c9f8f5853069c1fa211e56?d=identicon&s=25 Paul (Guest)
on 2013-04-23 00:59
(Received via mailing list)
Hi,

I've been trying to incorporate https://github.com/wycats/rack-offline
into
my app. I followed the example in the readme that shows how to cache
application.css and application.js files and that works.

When I go to my browser in production mode, though, and turn off my
network
connection, then reload the app, the app is reloaded successfully,
except
for the images.

I think I probably need to add something to the example in the routes
file,
but I'm not sure what. I'd like to cache everything from here:
"/assets/*"
I think.

I've googled around and am surprised that this question doesn't appear
to
be common.

I suppose I could move the images into the /public folder. I think that
would work, but I'd prefer to keep my configuration as standard as
possible.

Thanks,
Paul
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.