lib/billy/handlers/cache_handler.rb in puffing-billy-0.7.0 vs lib/billy/handlers/cache_handler.rb in puffing-billy-0.8.0
- old
+ new
@@ -23,9 +23,14 @@
if Billy.config.dynamic_jsonp
replace_response_callback(response, url)
end
+ if Billy.config.after_cache_handles_request
+ request = { method: method, url: url, headers: headers, body: body }
+ Billy.config.after_cache_handles_request.call(request, response)
+ end
+
return response
end
end
nil
end