Comments (6)
Wait, no I'm tired an misreading what --dev
does, I thought it set up a watcher, but it's just that it sets params suitable for dev. Everything working as expected, sorry for the issue and thanks for the very quick response!
from sirv.
Hey! You do need the --dev
flag if you're using the CLI. It's opts.dev
if you're using middleware.
Sirv assumes production mode by default, and in production you don't want to be constantly hitting the filesystem.
Hope that helps!
from sirv.
Oh cool. Should I open a PR with some warning o better flagging of this. It wasn't that obvious from the README, or maybe I was reading the wrong one 🤔
from sirv.
I'm experiencing this issue too with sirv 0.2.2, I'm using the --dev
flag. I came across the issue from using Svelte template. Tried in Firefox and Chrome.
from sirv.
Is it possible you have any lingering cache headers or service workers running?
The dev mode for sirv maintains zero cache & traverses the filesystem every time a request reaches it. I'm thinking either of those two are fulfilling the request before it hits your server
from sirv.
No problem! My eyes often play tricks on me too
from sirv.
Related Issues (20)
- Add Changelog HOT 2
- Document "dev mode"
- [feature] option to fail on port conflict HOT 1
- `/foo%2Fbar.txt` returns `/foo/bar.txt`
- Filter files more flexibly HOT 4
- Range request overlap is handled incorrectly HOT 2
- Option to enforce case sensitivity HOT 1
- Add some API to refresh / update the cache HOT 1
- Question: reduce cache size? HOT 2
- net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK) HOT 1
- [Feature Request] New option `base`. (Aka base path, public path, asssets URL root.)
- When static file changed to longer during run HOT 3
- Dev mode with cache control HOT 1
- Support for POST request HOT 2
- Add `charset=utf-8`
- Range suffix requests return prefixes instead
- Add "watch" mode to update filesystem cache HOT 2
- Downloading gzipped files in browsers HOT 4
- Support filenames that end with `+`
- Is it possible to disable the fallback to index.html
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 sirv.