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

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