jeudi 22 septembre 2016

cache in rails routes

Caching some url for offline, so here one thing is possible to change the protocol from http to https depends on the request url? ie if the request if http://localhost:3000, then the cache thing work with http, and if the request is secure https://localhost:3000 this cache work with https, i think this is not possible but is there any way to do this?

#routes.rb
offline = Rack::Offline.configure do
  cache "http://ift.tt/2cRY3V6"
end

Aucun commentaire:

Enregistrer un commentaire