Browse Source

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.

v0.1.8
Georg Hopp 12 years ago
parent
commit
7711950d94
  1. 5
      src/http/worker/get_asset.c

5
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();

Loading…
Cancel
Save