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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
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
This topic is locked and can not be replied to.