mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Allow caching up to a week
This commit is contained in:
parent
537fca9ca4
commit
4eccf72baa
2 changed files with 9 additions and 6 deletions
|
@ -7,6 +7,7 @@ var pro = require("uglify-js").uglify;
|
|||
var path = require('path');
|
||||
var Buffer = require('buffer').Buffer;
|
||||
var gzip = require('gzip');
|
||||
var server = require('./server');
|
||||
|
||||
/**
|
||||
* Answers a http request for the pad javascript
|
||||
|
@ -201,7 +202,7 @@ exports.padJS = function(req, res)
|
|||
pathStr = path.normalize(__dirname + "/../var/minified_pad.js");
|
||||
}
|
||||
|
||||
res.sendfile(pathStr);
|
||||
res.sendfile(pathStr, { maxAge: server.maxAge });
|
||||
})
|
||||
}
|
||||
//minifying is disabled, so load the files with jquery
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue