Skip to content
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

Support no-store header #143

Closed
sunshineo opened this issue Mar 25, 2015 · 2 comments
Closed

Support no-store header #143

sunshineo opened this issue Mar 25, 2015 · 2 comments

Comments

@sunshineo
Copy link

Correct me if I'm wrong. Even with no-cache, or max-age=-1 , the browser actually saves a copy. And next time it needs to use the copy, it send an conditional request to server. And if it not modified, server will return a 304 without the content of the file and browser happily use the local copy.

The no-store header however will force the browser to make a request every time it wants to use the file and get the content and get a 200.

This is a feature request I guess.

@NekR
Copy link

NekR commented Mar 5, 2016

@sunshineo just use -c no-store. http-server uses node-ecstatic which says that if cache field isn't number, then it's passed to Cache-Control as is. So you can actually put whatever string you want there.

@thornjad
Copy link
Member

@sunshineo I believe that solution should work. Please re-open if not!

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

No branches or pull requests

3 participants