Is there a way to force browsers to refresh/download images?

后端 未结 14 2194
囚心锁ツ
囚心锁ツ 2020-11-29 01:21

I have a problem where users are reporting that their images aren\'t being uploaded and the old ones are still there. On closer inspection the new images are there, they jus

14条回答
  •  迷失自我
    2020-11-29 01:59

    you can control the cache behaviour by playing with the HTTP headers.

    setting the expires header in past would force browser to not use cached version.

    Expires: Sat, 26 Jul 1997 05:00:00 GMT
    

    You can consult the RFC to have more details.

提交回复
热议问题