mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don't set Last-Modified based on the file date
If we serve files with a Last-Modified based on the file date, this interferes with content-based cache validation using ETag because clients are required to take both into account.
This commit is contained in:
@@ -405,7 +405,8 @@ WebAppInternals.staticFilesMiddleware = function (staticFiles, req, res, next) {
|
||||
} else {
|
||||
send(req, info.absolutePath, {
|
||||
maxage: maxAge,
|
||||
dotfiles: 'allow' // if we specified a dotfile in the manifest, serve it
|
||||
dotfiles: 'allow', // if we specified a dotfile in the manifest, serve it
|
||||
lastModified: false // don't set last-modified based on the file date
|
||||
}).on('error', function (err) {
|
||||
Log.error("Error serving static file " + err);
|
||||
res.writeHead(500);
|
||||
|
||||
Reference in New Issue
Block a user