The need for X-Accel-Redirect (and it’s sibling X-Sendfile) comes from two distinct requirements The need to deliver large files. The need for those files to not be available to the public.