]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Comment explaining how to force browser to always read some html files from server.
authorPari Nannapaneni <paripurnachand@digium.com>
Fri, 11 Jan 2008 21:28:48 +0000 (21:28 +0000)
committerPari Nannapaneni <paripurnachand@digium.com>
Fri, 11 Jan 2008 21:28:48 +0000 (21:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@98372 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/http.c

index 662afb03ed74ca929c006ef0b3f355df27de3d7f..e335086bbd20446274dfeeabb48652925146e760 100644 (file)
@@ -495,6 +495,11 @@ static void *ast_httpd_helper_thread(void *data)
                        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");