You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To replicate, create a simple ExpressJS app that serves content out of a public folder:
// app.jsvarexpress=require('express');varpath=require('path');varapp=module.exports=express();app.set('port',process.env.PORT||3000);app.use(express.bodyParser());app.use(express.methodOverride());app.use(express.session());app.use(express.compress());// NOTE: compressing all content-type: text/*app.use(express.static(path.join(__dirname,'/public')));app.listen(app.get('port'),function(){console.log("Express server listening on port "+app.get('port'));});
With grunt-reload running, try to load a plain html file, such as index.html (the content doesn't matter):
(This issue first arose here: ericclemmons/genesis-skeleton#18)
To replicate, create a simple ExpressJS app that serves content out of a public folder:
With grunt-reload running, try to load a plain html file, such as
index.html
(the content doesn't matter):Notice the
content-length: 0
?Now, it works if you change
reload.js
lines 126-135 to the following:I'm not sure why the original code defers html & headers for HTML content, but creates an issue when working with gzipped content...
The text was updated successfully, but these errors were encountered: