Pros and Cons of a separate image server (e.g. images.mydomain.com)?

后端 未结 5 2069
鱼传尺愫
鱼传尺愫 2020-12-14 11:57

We have several images and PDF documents that are available via our website. These images and documents are stored in source control and are copied content on deployment. We

5条回答
  •  醉梦人生
    2020-12-14 12:29

    Pros:

    -load balancing

    -isolating a different functionality

    Cons:

    -more work (when you create a page on the main site you would have to maintain the resources on the separate server)

    Things like XSS is a problem of code not sanitizing input (or output for that matter). The only issue that could arise is if you have sub-domain specific cookies that are used for authentication.. but that's really a trivial fix.

提交回复
热议问题