推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
alvy
V2EX  ›  Python

开发环境加载静态文件奇慢无比,无法忍受,求解答

  •  
  •   alvy · May 3, 2016 · 4592 views
    This topic created in 3865 days ago, the information mentioned may be changed or developed.

    python+flask nginx

    阿里云服务器 加载静态文件慢到无法忍受,甚至加载不出来 但是换一个网会好很多,但是公司的网访问别的网页是正常的 不知道到底是什么原因? yuanyyuany

    11 replies  •  2016-05-03 23:06:13 +08:00
    kindjeff
    kindjeff
    May 3, 2016 via iPhone
    1
    换一个网会好很多?还是你换的那个设备访问过,所以有 js 和 css 的缓存呢?
    awanabe
    awanabe
    May 3, 2016
    2
    读取服务器本地文件, 看下你的服务器带宽 IO 之类的, 一般都是小水管, 要么 CDN , 要么带宽增加点
    janxin
    janxin
    May 3, 2016
    3
    是不是带宽不够静态文件太大?
    virusdefender
    virusdefender
    May 3, 2016
    4
    这种没 F12 没数据 没链接的问题怎么让别人给你解决。。
    alvy
    alvy
    OP
    May 3, 2016
    5
    @kindjeff 一直都是这个设备。
    alvy
    alvy
    OP
    May 3, 2016
    6
    @awanabe 我连手机 3g wifi 热点都正常许多,家里拨号网络也正常许多
    alvy
    alvy
    OP
    May 3, 2016
    7
    @janxin 据说 20M 光纤
    alvy
    alvy
    OP
    May 3, 2016
    8
    @virusdefender 抱歉,我也不知道怎么问
    ayaseangle
    ayaseangle
    May 3, 2016
    9
    远程开发吗?

    静态文件缓存?是不是 devtool 把缓存禁用了?
    wbolor
    wbolor
    May 3, 2016
    10
    静态文件什么的可以丢在七牛上吧。。。
    virusdefender
    virusdefender
    May 3, 2016
    11
    @alvy F12 看下是域名解析慢,还是服务器响应慢,还是文件下载慢,原因很多的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3640 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 09:47 · PVG 17:47 · LAX 01:47 · JFK 04:47
    ♥ Do have faith in what you're doing.