else if ((notes != NULL) && notes->defaulted) {
/*
* None for this type, but there was a default defined --
- * so use it.
+ * so use it. Add the Expires header and add or replace the
+ * Cache-Control header.
*/
- t = apr_table_overlay(r->pool, notes->expfields, t);
+ apr_table_overlap(r->headers_out, notes->expfields, APR_OVERLAP_TABLES_SET);
}
}
ap_remove_output_filter(f);
return DECLINED;
}
+ /* Note: This is broken, DirectoryIndex files will not get an expires header
+ * We should say -yes- to fast-redirects (which are not really subrequests)
+ * but this check is not granular enough to distinguish between a fast-redirect
+ * and a subrequest
+ */
if (r->main != NULL) { /* Say no to subrequests */
return DECLINED;
}