[asterisk-commits] pari: trunk r98514 - in /trunk: ./ main/http.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 11 23:13:04 CST 2008


Author: pari
Date: Fri Jan 11 23:13:04 2008
New Revision: 98514

URL: http://svn.digium.com/view/asterisk?view=rev&rev=98514
Log:
merging a comment added in 1.4

Modified:
    trunk/   (props changed)
    trunk/main/http.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/http.c
URL: http://svn.digium.com/view/asterisk/trunk/main/http.c?view=diff&rev=98514&r1=98513&r2=98514
==============================================================================
--- trunk/main/http.c (original)
+++ trunk/main/http.c Fri Jan 11 23:13:04 2008
@@ -849,6 +849,10 @@
 				"%s",
 			status, title ? title : "OK", ast_get_version(), timebuf,
 			static_content ? "" : "Cache-Control: no-cache, no-store\r\n");
+			/* We set the no-cache headers only for dynamic content.
+			* If you want to make sure the static file you requested is not from cache,
+			* append a random variable to your GET request.  Ex: 'something.html?r=109987734'
+			*/
 		if (!contentlength) {	/* opaque body ? just dump it hoping it is properly formatted */
 			fprintf(ser->f, "%s", out->str);
 		} else {




More information about the asterisk-commits mailing list