insert middleware before Rack::ETag