aboutsummaryrefslogtreecommitdiffstats
path: root/main/http.c
diff options
context:
space:
mode:
authorpari <pari@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-12 05:13:04 +0000
committerpari <pari@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-12 05:13:04 +0000
commit82ef5c6d36ff6c0b8630543f82b12d48e0417a20 (patch)
tree9b58af78e9461240c1779a3d0bfed0fc1f608b79 /main/http.c
parentcdf9ce4cb99c864703ce33a58563f3c65ef15daf (diff)
merging a comment added in 1.4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98514 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/http.c b/main/http.c
index c7ea804fc..c423e56e0 100644
--- a/main/http.c
+++ b/main/http.c
@@ -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 {