Move cacheability detection before populating $_SERVER since we now use it to determine the proper host and port.
Move cacheability detection before populating $_SERVER since we now use it to determine the proper host and port.

mscifo/pressless,mscifo/pressless,mscifo/pressless