]> arthur.barton.de Git - netdata.git/commitdiff
lowered static files browser caching to 1 day (was 14 days - but the frequent updates...
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 23 Sep 2016 22:08:48 +0000 (01:08 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 23 Sep 2016 22:08:48 +0000 (01:08 +0300)
src/web_client.c

index d86ca3af8d98ab5c74b2e663c028435a10bec26c..874aeaf4d89629c5c710653fa19496e9ed48026b 100644 (file)
@@ -2160,7 +2160,7 @@ void web_client_process(struct web_client *w) {
     }
     else if(w->mode != WEB_CLIENT_MODE_OPTIONS) {
         char edate[32];
-        time_t et = w->response.data->date + (86400 * 14);
+        time_t et = w->response.data->date + 86400;
         struct tm etmbuf, *etm = gmtime_r(&et, &etmbuf);
         strftime(edate, sizeof(edate), "%a, %d %b %Y %H:%M:%S %Z", etm);