dimdenGD / ultimate-express

The Ultimate Express. Fastest http server with full Express compatibility, based on µWebSockets.
Apache License 2.0
519 stars 15 forks source link

app disable etag don't works #15

Closed cesco69 closed 1 month ago

cesco69 commented 1 month ago

see https://expressjs.com/en/api.html#app.disable

const express = require("ultimate-express");

const app = express();

app.disable('etag');

app.listen(3000, () => {
    console.log('Server is running on port 3000');
});

Response header ha etag.

The workaround is add an empty etag function, eg.:

const express = require("ultimate-express");

const app = express();

app.disable('etag');
app.set('etag fn', null); // <-- this

app.listen(3000, () => {
    console.log('Server is running on port 3000');
});
dimdenGD commented 1 month ago

Fixed