connect-static-expiry
connect-static-expiry copied to clipboard
Connect middleware for static files that sets caching response headers as well as generates and rewrites fingerprinted urls.
Hey Paul, Can you publish the latest version to npm? I don't seem to have access to do that. Cheers, Ethan
NPM audit reveals high vulnerability issues in dependency. This is fixable by revving fresh to 0.5.2 ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ High │ Regular Expression Denial of Service │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │...
When using a host option without a protocol. I think this is related to https://github.com/nodejs/node/issues/3361, or some other breaking change with `url.format`. I'm not sure what the proper behavior should...
Hi, Paul! Can you update `fresh` dependency to the latest version (0.5.2 for now)? In this version was fixed the vulnerability (https://snyk.io/vuln/npm:fresh:20170908). And after that, can you publish to npm?...
I did the config as follows ``` app.use(expiry(app, { dir: path.join(__dirname, 'public'), duration: 31556900 })); app.use(express.static(path.join(__dirname, 'public'), { maxage: config.oneDay }, { etag: config.etagAllow }, { dotfiles: config.Allowdotfiles })); ```...