-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache cannot be disabled with cli #188
Comments
Fixed by PR: #189 |
Any updates here? can this PR be merged? if not, can you please give us a hint how to disable cache in CLI mode? The best I got so far was: then as a result I had 2 headers in the response:
which is a bit confusing |
seconded - can we get the PR merged? |
The programmatic cache option is weird too: const st = require('node-static');
const fileServer = new st.Server(path, {
cache: 0,
headers: {
'Cache-Control': 'no-cache, must-revalidate',
},
}); Results in dual
While the CLI seems to interpret
|
I'm trying to disable cache in the CLI
I've tried
static -c 0 .
,static -c false .
,static -c 0 .
, andstatic --cache=false .
None of these combinations work.
The text was updated successfully, but these errors were encountered: