We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c0c510 commit 6c56cbcCopy full SHA for 6c56cbc
guides/defer/setup.md
@@ -111,6 +111,8 @@ class GraphqlController < ApplicationController
111
112
# Check if this is a deferred query:
113
if (deferred = result.context[:defer])
114
+ # Required for Rack 2.2+, see https://github.com/rack/rack/issues/1619
115
+ response.headers['Last-Modified'] = Time.now.httpdate
116
# Use built-in `stream_http_multipart` with Apollo-Client & ActionController::Live
117
deferred.stream_http_multipart(response)
118
else
0 commit comments