Is it OK to HTTP redirect images?

前端 未结 3 773
眼角桃花
眼角桃花 2020-12-02 18:20

Is it OK to return a 301 / 302 / 303 code when returning an image resource? I have done this in the past and it seems to work. Is it good practice and is it compatible with

3条回答
  •  囚心锁ツ
    2020-12-02 19:09

    It's OK if the code actually reflects reality - for example, if an image has indeed moved permanenetly, you should use a 301.

提交回复
热议问题