Node.js + Express.js on Windows: do static files wait up to two minutes?

I have a problem with my Windows environment with Node.Js / Express.js, as a result of which static JS files can be marked as โ€œpendingโ€ in the browser (with caching disabled) for up to two minutes, after which they seem to load a fine . This usually happens after several updates.

There are no errors, so I'm not sure how to explore further. The same code works fine on Mac OSX.

Node version v0.10.31, Express - 4.8.5.

Code for static file:

app.use(express.static(path.join(__dirname, 'public')));

Chrome DevTools shows:

Chrome DevTools Screenshot

+4
source share
1 answer

. , resave express-session false.

app.use(session({ resave : false, ... }));

: node v0.10.31, express v4.9.0, express-session v1.8.1

connect-mongo v0.4.1.

, .

+2

All Articles