We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have an issue where gzippo overrides the http headers, and it causes my html files to never refresh.
For example:
express.js:
var express = require('express'); var app = express(); app.configure(function () { app.use(function (req, res, next) { res.setHeader('foo', 'bar'); return next(); }); }); var connect = require('connect'); connect.createServer( connect.static("" + __dirname + "/dist") ).listen(8090);
gzippo.js
var gzippo = require('gzippo'); var express = require('express'); var app = express(); app.configure(function () { app.use(function (req, res, next) { //res.set('Cache-Control', 'public, max-age=0'); //res.set('X-Powered-By', 'Express'); res.set('X-Powered-By', '') res.set('Accept-Ranges', 'bytes'); res.set('ETag', '"50-1393582560000"'); res.set('Date', 'Fri, 28 Feb 2014 10:35:50 GMT'); res.set('Cache-Control', 'public, max-age=0'); res.set('Last-Modified', 'Fri, 28 Feb 2014 10:16:00 GMT'); res.set('Content-Type', 'text/html; charset=UTF-8'); res.set('Content-Length', '50'); res.set('Connection', 'keep-alive'); return next(); }); }); //var logFile = fs.createWriteStream('./myLogFile.log', {flags: 'w'}); //use {flags: 'w'} to open in write mode //app.use(express.logger({stream: logFile})); app.use(express.logger('dev')); //app.use(gzippo.staticGzip("" + __dirname + "/dist", {maxAge: 0, clientMaxAge: 0}), {maxAge: 0, clientMaxAge: 0}); app.use(gzippo.staticGzip("" + __dirname + "/dist", {maxAge: 0, clientMaxAge: 0}), {maxAge: 0, clientMaxAge: 0}); app.listen(8090);
You will see that chrome will override max-age: 0 for the gzippo server. Why is that ?
In my case, it would be great to specify to my gzippo server not to gzipo html files.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have an issue where gzippo overrides the http headers, and it causes my html files to never refresh.
For example:
express.js:
gzippo.js
You will see that chrome will override max-age: 0 for the gzippo server. Why is that ?
In my case, it would be great to specify to my gzippo server not to gzipo html files.
The text was updated successfully, but these errors were encountered: