How to clear browser cache when re-uploading image with same filename, in php?

后端 未结 8 1492
灰色年华
灰色年华 2021-02-18 19:05

I have a listing of items, that also contains an image thumbnail. Sometimes I need to change the thumbnail image, but keep the filename the same. Is there a way to force the bro

8条回答
  •  粉色の甜心
    2021-02-18 19:25

    You can use the modification time of file:

    ";
    
    //result: 
    
    ?>
    

    when the file is modified will clear the client cache

提交回复
热议问题