I installed it, configure and run my app... in my dev log I get :
Started GET "/fr/application.manifest" for 127.0.0.1 at 2013-01-25 11:26:40 +0100
CACHE MANIFEST
# aba331a67ba974bf70c665dfc48a1bea5da7d8fe352c46a76af07f45c339d422
404.html
422.html
500.html
offline.html
NETWORK:
*
Started GET "/fr/404.html" for 127.0.0.1 at 2013-01-25 11:26:40 +0100
Started GET "/fr/422.html" for 127.0.0.1 at 2013-01-25 11:26:40 +0100
Started GET "/fr/500.html" for 127.0.0.1 at 2013-01-25 11:26:40 +0100
Started GET "/fr/offline.html" for 127.0.0.1 at 2013-01-25 11:26:40 +0100
Started GET "/" for 127.0.0.1 at 2013-01-25 11:26:40 +0100
These are all the html files in my public folder ... but why I dont have also the files mentioned in the configuration ?
Rack::Offline.configure do
cache "images/favicon.ico"
cache "images/isabelle.png"
public_path = Pathname.new(Rails.public_path)
Dir["#{public_path.to_s}/uploads/craftwork/image/**/*.{jpg,png,jpeg}"].each do |file|
cache Pathname.new(file).relative_path_from(public_path) if File.file?(file)
end
network "/fr/contacts.html"
network "/en/contacts.html"
network "/fr/informations.html"
network "/en/information.html"
fallback "/html/" => "/offline.html"
end
the 4 files in configuration are not listed in the generated manifest .... what's wrong with my config ?
I installed it, configure and run my app... in my dev log I get :
These are all the html files in my public folder ... but why I dont have also the files mentioned in the configuration ?
the 4 files in configuration are not listed in the generated manifest .... what's wrong with my config ?