Comments (4)
@nbluis I was also encountering this issue (using static-server for development). Just submitted a pull request #32 which adds a --no-cache
flag which returns the file with a 200. It doesn't modify the ETag value though
EDIT: If Etag is not edited then I think it would still cache, correct? So I updated the --no-cache
option to remove the Etag header and Last-Modified header when it is enabled.
from static-server.
Hmmm, makes sense.
Would you like to try to implement and send a pull request?
from static-server.
@nbluis this option is also incorrectly documented on the npm page: https://www.npmjs.com/package/static-server (states --no-nocache
instead of --no-cache
)
from static-server.
Hi guys, thanks a lot for your help.
I decided to retire the project as I no longer have the time to maintain it.
If any of you are interested in making a fork, I'd be happy to mention it for others in the community to use.
More information about this in the README.
from static-server.
Related Issues (20)
- Upgrade to Node 4 and 5 HOT 1
- Upgrade dependencies. HOT 1
- Server crashes on symbolic links (Path must be a string) HOT 4
- `server.on('response')` callback documentation in README.md has the wrong arguments order
- Server crashes when given invalid range HOT 2
- add a host option for the static-server CLI HOT 1
- Optional Browser HOT 2
- Enabling Clean URLs HOT 6
- Response object is null HOT 2
- Not working HOT 4
- The template notFound does not use the rootPath like index does HOT 2
- CORS works incorrectly HOT 1
- How to turn on colors (stdout/stderr) when run as a child process
- Silence output HOT 3
- Doesn't listen IPV6 [::1] HOT 3
- Add ability difine additional mime types HOT 1
- CLI displays warning: options.index is now deprecated HOT 1
- zsh: command not found: static-server
- Not working with gulp 4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from static-server.