mirror of https://github.com/adamdruppe/arsd.git
change the cache a bit so people sometimes see new stuff
This commit is contained in:
parent
82a0c4720b
commit
8d24702dc2
|
@ -731,7 +731,7 @@ auto serveTemplateDirectory()(string urlPrefix, string directory = null, string
|
|||
|
||||
auto fn = details.templateDirectory ~ details.directory ~ file ~ details.extension;
|
||||
if(std.file.exists(fn)) {
|
||||
cgi.setCache(true);
|
||||
cgi.setResponseExpiresRelative(600, true); // 10 minute cache expiration by default, FIXME it should be configurable
|
||||
auto doc = renderTemplate(fn[details.templateDirectory.length.. $], var.emptyObject, var.emptyObject, details.skeleton, TemplateLoader.forDirectory(details.templateDirectory));
|
||||
cgi.gzipResponse = true;
|
||||
cgi.write(doc.toString, true);
|
||||
|
|
Loading…
Reference in New Issue