Tuesday, 15 September 2015

javascript - flatiron.js: how to turn of cache for static files? -



javascript - flatiron.js: how to turn of cache for static files? -

i'm using flatiron static plugins this:

app.use(flatiron.plugins.static, { dir: './app/assets', cache: false });

the st module has caching options, cache: false. doesn't work that. don't know if flatiron plugin doesn't take cache option. help on this?

i had plug in plugin this:

app.use(flatiron.plugins.static, {dir: './app/assets', url: '/assets'});

otherwise root (/) routes have been cached , served static.

javascript node.js flatiron.js

No comments:

Post a Comment