[asterisk-commits] pari: branch 1.4 r98372 - /branches/1.4/main/http.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 11 15:28:48 CST 2008


Author: pari
Date: Fri Jan 11 15:28:48 2008
New Revision: 98372

URL: http://svn.digium.com/view/asterisk?view=rev&rev=98372
Log:
Comment explaining how to force browser to always read some html files from server.



Modified:
    branches/1.4/main/http.c

Modified: branches/1.4/main/http.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/http.c?view=diff&rev=98372&r1=98371&r2=98372
==============================================================================
--- branches/1.4/main/http.c (original)
+++ branches/1.4/main/http.c Fri Jan 11 15:28:48 2008
@@ -495,6 +495,11 @@
 			ast_cli(ser->fd, "Connection: close\r\n");
 			if (!static_content)
 				ast_cli(ser->fd, "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) {
 				char *tmp;
 				tmp = strstr(c, "\r\n\r\n");




More information about the asterisk-commits mailing list