Giter Site home page Giter Site logo

File not refreshing about sirv HOT 6 CLOSED

jeremenichelli avatar jeremenichelli commented on August 21, 2024
File not refreshing

from sirv.

Comments (6)

aubergene avatar aubergene commented on August 21, 2024 1

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.

lukeed avatar lukeed commented on August 21, 2024

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.

jeremenichelli avatar jeremenichelli commented on August 21, 2024

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.

aubergene avatar aubergene commented on August 21, 2024

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.

lukeed avatar lukeed commented on August 21, 2024

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.

lukeed avatar lukeed commented on August 21, 2024

No problem! My eyes often play tricks on me too

from sirv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.