From 7711950d940cbde7c4e20a00b194c6e36fe654b7 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Mon, 25 Nov 2013 23:33:30 +0000 Subject: [PATCH] reduce expire for assets to 12 hours...currently I expect changes even more often. At the end this is another condidate for the configuration file. --- src/http/worker/get_asset.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/http/worker/get_asset.c b/src/http/worker/get_asset.c index 3569e0d..7489e1b 100644 --- a/src/http/worker/get_asset.c +++ b/src/http/worker/get_asset.c @@ -55,10 +55,13 @@ httpWorkerGetAsset(HttpWorker this, const char * fname) nmatch = (header->nvalue)[0]; } + /* + * assets expire after 12 hours... + */ message = (HttpMessage)httpResponseAsset( fname, nfname, - time(NULL) + 604800); + time(NULL) + 43200); if (NULL == message) { return (HttpMessage)httpResponse404();