用户头像应保存在私人目录中吗? [英] should user avatars be saved in a private directory?

查看:133
本文介绍了用户头像应保存在私人目录中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个社区站点,目前正在编写一个脚本,该脚本生成缩略图并将其存储在我们的文件系统中.

I am building a community site and i'm currently writing a script that generates thumbnails and stores them on our filesystem.

我应该将头像存储在私有目录中吗?还是可以将这种类型的文件放在CDN之类的公共资产目录中?

Should I be storing the avatars in a private directory? or is it OK for that type of file to be in a public assets directory like a CDN?

为什么或为什么不呢?

推荐答案

到处搜索并查看其他站点.尤其是Google Plus不会将其头像保存在私人目录中.

After searching around and looking at other sites. Google Plus in particular does not save their avatars in a private directory.

实际上,它们的头像是从公共CDN访问的,并被提供并与实际搜索结果混合.

In fact, their avatars are accessed from a public CDN and are served up and mixed in with actual search results.

所以我想答案是否定的,没有必要将化身设为私人

So I guess the answer is no, it isn't necessary to make avatars private

这篇关于用户头像应保存在私人目录中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆