Support » Plugin: WP Super Cache » [Plugin: WP Super Cache] SERVER_NAME vs. HTTP_HOST

  • admintiger

    (@admintiger)


    I noticed revisions in Changeset 556622 to “Use HTTP_HOST instead of SERVER_NAME because nginx has problems with it.” SERVER_NAME is inherently more reliable where it is set, because its value is set by the server, whereas HTTP_HOST is taken from the HTTP request header and is whatever a client used for a request. Because of that, wouldn’t it be better to use SERVER_NAME where it is set and to use the less-reliable HTTP_HOST only where necessary to support nginx or other servers that don’t set it.

    http://wordpress.org/extend/plugins/wp-super-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Super Cache] SERVER_NAME vs. HTTP_HOST’ is closed to new replies.