문제

I'm using the flatiron static plugins like this:

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

The st module has caching options, like cache: false. But it doesn't work like that. I don't know if the flatiron plugin doesn't accept the cache option. Any help on this?

도움이 되었습니까?

해결책

I had to plug in the plugin like this:

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

Otherwise all root (/) routes would have been cached and served static.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top