tomheng
V2EX  ›  问与答

又拍云为什么不用类似反向代理的方式实现图片托管呢?

  •  
  •   tomheng · Dec 5, 2012 · 3383 views
    This topic created in 5070 days ago, the information mentioned may be changed or developed.
    比如将img.v2ex.com cname到他们的server

    然后告诉他们实际图片存储在v2ex.com上。

    这样客户端请求img.v2ex.com/2012/12/05/beauty.jpg的时候

    他们的server判断是否已经缓存这个图片,如果有直接返回

    没有则到v2ex.com/2012/12/05.beauty.jpg获取。

    这样使用他们服务的网站就不需要做适配开发了,

    也便于服务切换。

    为什么不采用这种方式呢?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2801 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 02:01 · PVG 10:01 · LAX 19:01 · JFK 22:01
    ♥ Do have faith in what you're doing.