Comments (2)
这个应该是 asset.js 和 app.js (app.js 对应最开始版本的静态服务器,asset.js对应后来综合版本里的静态服务器)中的 response.setHeader('Content-Length', stats.size);
这一行导致的,大约原因是面对压缩比比较大的CSS文件(比方说从几百K压缩成几十K),这里的Content-Length是原始文件的大小,浏览器识别到这个值后会一直等待读取,而事实上压缩后的文件早传完了,所以造成“浏览器呈假死状态”,直到浏览器2分钟超时。将这一行注释即可解决这个问题。
from ping.
嗯嗯。不要用在生产环境。这个是早年的练手作品。
或者真的想用,可以发Pull Request
from ping.
Related Issues (6)
- 为什么服务器响应速度非常慢 HOT 13
- 文件服务器的安全性问题 HOT 5
- 请问,过期Session的清除机制是怎样的? HOT 1
- 求大大提供个文档学习下 HOT 1
- utils.js bug 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 ping.