I've read in a few answers here on StackOverflow that it's better to use the iisnode's static files configurations rather than let node.js handle it.
That's ok, but I just can't find a way to get it to work with the traditional configurarion for browse caching:
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
</staticContent>
When I'm using the node'js normal browse cache, that's how it's configured (and working):
app.use(express.static(path.join(__dirname, 'public'), {maxAge: 86400000}));
My questions, than, are:
- Is it really better to use the iisnode static files serving system?
- Is there a way to make
<clientCache ...
to work in IISnode?
Thanks