lib/pupa/refinements/faraday_middleware.rb in pupa-0.0.7 vs lib/pupa/refinements/faraday_middleware.rb in pupa-0.0.8

- old
+ new

@@ -1,7 +1,5 @@ -# A refinement for the Faraday caching middleware to cache all requests, not -# only GET requests. Using Ruby's refinements doesn't seem to work, possibly -# because Faraday caches middlewares. +# Caches all requests, not only GET requests. class FaradayMiddleware::Caching def call(env) # Remove if-statement to cache any request, not only GET. if env[:parallel_manager] # callback mode