Support » Plugin: WooCommerce » X-Accel-Redirect/X-Sendfile

  • Resolved exxis

    (@exxis)


    Hello,

    is there anything I have to do if I want to use X-Accel-Redirect/X-Senfile (for me it would be X-Accel since I’m using nginx.

    greets
    exxis

Viewing 1 replies (of 1 total)
  • Plugin Support Boro Sitnikovski

    (@bor0)

    Hello there,

    WooCommerce should automatically handle that. You can see the actions are defined in the constructor of WC_Download_Handler, for both woocommerce_download_file_redirect and woocommerce_download_file_xsendfile.

    Further, the method download_file_xsendfile will use the proper header (X-Sendfile / X-Lighttpd-Sendfile / X-Accel-Redirect) depending on the environment, so all should be good.

    Thanks!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.