aboutsummaryrefslogtreecommitdiffstats
path: root/main/http.c
diff options
context:
space:
mode:
authorpari <pari@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-11 21:28:48 +0000
committerpari <pari@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-11 21:28:48 +0000
commitf6fe74519fce7fa2e8c1f106e0f7fb2a35656277 (patch)
tree5c5c9904825c72f814b79f9bf915a6fcb286f0ca /main/http.c
parent03282c69bc5ea93213e0c8432eecb95c614b7a12 (diff)
Comment explaining how to force browser to always read some html files from server.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@98372 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/http.c b/main/http.c
index 662afb03e..e335086bb 100644
--- a/main/http.c
+++ b/main/http.c
@@ -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");