Author: poeml Date: 2009-03-02 10:47:33 -0700 (Mon, 02 Mar 2009) New Revision: 6657 Modified: trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c Log: mod_mirrorbrain: - just to be sure, add no-store,max-age=0 cache controls to metalinks that deliberately contain broken mirrors Modified: trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c =================================================================== --- trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c 2009-03-02 17:36:55 UTC (rev 6656) +++ trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c 2009-03-02 17:47:33 UTC (rev 6657) _at_@ -1613,6 +1613,7 @@ /* insert broken mirrors at the top, for failover testing? */ if(apr_table_get(r->headers_in, "X-Broken-Mirrors")) { debugLog(r, cfg, "Client sent X-Broken-Mirrors header -- adding broken mirrors"); + apr_table_mergen(r->headers_out, "Cache-Control", "no-store,max-age=0"); ap_rprintf(r, "\n <!-- Broken mirrors for testing: -->\n"); /* hostname does not resolve */ ap_rprintf(r, " <url type=\"http\" location=\"de\" preference=\"%d\">" _______________________________________________ Opensuse-svn mailing list Opensuse-svn_at_forge.novell.com http://forge.novell.com/mailman/listinfo/opensuse-svn _______________________________________________ mirrorbrain-commits mailing list Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Mon Mar 02 2009 - 17:47:58 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT