Comments (3)
I think this bug is because of amphp/file
.
StatCache
cache the file state, but not update file state when file info changed.
https://github.com/amphp/file/blob/cc1d11993e1546e4cad9bd2de22c6ba8ff88af3c/lib/UvDriver.php#L115
https://github.com/amphp/file/blob/cc1d11993e1546e4cad9bd2de22c6ba8ff88af3c/lib/StatCache.php#L19
from http-server-static-content.
So, setting StatCache::ttl(0);
in your server does fix it?
Generally the StatCache is a good thing, reducing latency by a good margin...
We possibly should add a file change watcher (i/anotify for example) for stat invalidation ...
from http-server-static-content.
Yeah, we need inotify extension. if has inotify
, all the thing can bu resolved.
This is two reason,first is StatCache, another is cache too.
We can't get the file stat on file changed. if We have not inodify
,only update file info in every seconds
from http-server-static-content.
Related Issues (11)
- Refactor options HOT 2
- Why libuv? HOT 3
- Support for amphp/file v2 HOT 4
- Cannot run example: Missing dependency http-server-roter HOT 2
- Issue with If-Modified-Since HTTP header
- Provide responder for a single file HOT 1
- Make DocumentRoot final
- Extract remoteDotSegments HOT 1
- Serving from a subdirectory HOT 2
- Commit 9f43db6 content-length HOT 2
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 http-server-static-content.