sails.js: how to disable etags
问题 I read this not very new post about disabling some things in sails.js. Specifically what I would like to try out is the disabling of etags. Does anyone know how to disable that in sails.js (0.11.0)? 回答1: You could disable it in the bootstap.js file: // config/bootstrap.js module.exports.bootstrap = function(cb) { // Add this line to access to the Express app and disable etags sails.hooks.http.app.disable('etag'); // It's very important to trigger this callback method when you are finished //