[Remove entries to the current 2.0 section below, when backported]
+ *) mod_include no longer allows an ETag header on 304 responses.
+ PR 19355. [Geoffrey Young <geoff@apache.org>, André Malo]
+
*) mod_autoindex: Add 'XHTML' option in order to allow switching between
HTML 3.2 and XHTML 1.0 output. PR 23747. [André Malo]
f->r->no_local_copy = 1;
}
+ /* Don't allow ETag headers to be generated - see RFC2616 - 13.3.4.
+ * We don't know if we are going to be including a file or executing
+ * a program - in either case a strong ETag header will likely be invalid.
+ */
+ apr_table_setn(f->r->notes, "no-etag", "");
+
return OK;
}
*/
apr_table_unset(f->r->headers_out, "Content-Length");
- /* Always unset the ETag/Last-Modified fields - see RFC2616 - 13.3.4.
+ /* Always unset the Last-Modified field - see RFC2616 - 13.3.4.
* We don't know if we are going to be including a file or executing
* a program which may change the Last-Modified header or make the
* content completely dynamic. Therefore, we can't support these
* headers.
* Exception: XBitHack full means we *should* set the Last-Modified field.
*/
- apr_table_unset(f->r->headers_out, "ETag");
/* Assure the platform supports Group protections */
if ((conf->xbithack == XBITHACK_FULL)