V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
sujin190
V2EX  ›  Python

造个小轮子,通过 proxy 方式自动在网页中静态资源后面加上时间戳,强制刷新静态资源

  •  
  •   sujin190 ·
    snower · 2015-01-14 15:30:45 +08:00 · 2613 次点击
    这是一个创建于 3362 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2 条回复    2015-01-15 09:41:42 +08:00
    jones
        1
    jones  
       2015-01-15 08:06:16 +08:00 via Android
    并发量上来性能堪忧啊,所有的响应内容都去扫一遍html响应内容查找一遍静态资源后缀,python的正则和字符串运算现在性能真的牛叉到可以忽略并发任性使用了?静态资源版本号还是前端构建工具发布的时候添加上比较好
    sujin190
        2
    sujin190  
    OP
       2015-01-15 09:41:42 +08:00   ❤️ 1
    @jones 这个只是用于调试的时候了,比如微信调试的时候就比较坑,没办法发刷缓存,每次改了都不生效,又没办法在pc上调试,真的到了线上,当然还是使用构建工具了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2794 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:02 · PVG 23:02 · LAX 08:02 · JFK 11:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.