Fix/simplify caching when included in Rails application

Now the setting of  60 seconds `expires_in` is working when gem is included in a Rails application.