Changes for version 1.97 - 1998-10-22

  • Fixed DOCUMENT_NAME, DOCUMENT_URI, and LAST_MODIFIED so they return information about the document the user requested, not the document we're currently processing (which might be an <!--#include-->'d file). Test 7 in real.t witnesses the change. This behavior is consistent with mod_include, and I think it's also desirable: the browser shouldn't see the names of documents we're including.
    • thanks, Bruce Hoylman
  • Now the three above ENV variables cache their results in the subprocess_env table, which will speed things up if you call them repeatedly. This is similar to mod_include, but mod_include puts them there at the _beginning_ of the request, whereas I wait until they're asked for.

Modules

Implement Server Side Includes in Perl