We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
I include staticify like this:
staticify
const staticify = require('staticify')(path.join(__dirname, 'public'), { pathPrefix: '/public' }); app.use('/public', staticify.middleware);
This works when I receive requests for versioned files, but not if I request the file without including the hash
I can work around the issue using the code below, but it'd be nice if staticify.middleware did this for me
staticify.middleware
if (!isProd) { app.use(function(req, res, next) { if (req.url.startsWith('/javascripts') || req.url.startsWith('/css')) { req.url = '/public/' + req.url; } next(); }); }
I include
staticifylike this:This works when I receive requests for versioned files, but not if I request the file without including the hash
I can work around the issue using the code below, but it'd be nice if
staticify.middlewaredid this for me