Skip to content

Respect static --cache 0 #138

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

Merged
merged 1 commit into from
May 21, 2021
Merged

Conversation

matthew-andrews
Copy link
Contributor

There are a number of ways that this could be done… this seemed the most obvious (check the property cache existed on argv rather than check if it was truthy but happy to tweak).

The main purpose of this is to make static -c 0 serve files with max-age=0 cache control headers.

@cphoover
Copy link

why the hell hasn't this been merged? It was submitted in 2014... comeons now

@brettz9 brettz9 merged commit c7be162 into cloudhead:master May 21, 2021
Zarel pushed a commit to Zarel/node-static that referenced this pull request Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants