-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We set Accept-Range on pass, is that OK ? #3251
Comments
bugwash: Right now, we add We agree that we want more VCL control and three alternative approaches have been discussed:
We agree to handle this as part of #3246 Also we agree that the documentation of |
This is an alternative approach to the ideas recorded in varnishcache#3251: By centralizing control over the Range-Request related headers, range handling can be disabled by removing the range vdp from the response filters. By default, we now always push the range VDP as long as http_range_support is on. If that is the case, behaviour is just the same as before, but the Accept-Ranges response header is now set in the range VDP's init callback. The difference is that, if the range vdp is removed from the filters, no Accept-Ranges header will be sent. Note that if the range will not be active during delivery if it only sets Accept-Ranges (by returning 1 from the init callback). Fixes varnishcache#3251
I realized that the actual cause of the problem is that we mixed handling of ranges in core code and the range vdp. By moving all relevant parts to that one, whether or not we send See #3289 |
How this should work:
|
@bsdphk that option was discussed before, see above:
How do you address the concern? |
You can test |
Shouldn't we leave it to the backend to set A-R on pass ?
The text was updated successfully, but these errors were encountered: