]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
merging a comment added in 1.4
authorPari Nannapaneni <paripurnachand@digium.com>
Sat, 12 Jan 2008 05:13:04 +0000 (05:13 +0000)
committerPari Nannapaneni <paripurnachand@digium.com>
Sat, 12 Jan 2008 05:13:04 +0000 (05:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98514 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/http.c

index c7ea804fc534a96b4a7e10b84e4a8ca841e5d7df..c423e56e0cc7a465905e61ad69c8266325b4cd68 100644 (file)
@@ -849,6 +849,10 @@ static void *httpd_helper_thread(void *data)
                                "%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 {