上次修改rotateImage更新后的PHP Imagick

上次修改rotateImage更新后的PHP Imagick,php,imagick,Php,Imagick,我有一个网站,用户可以上传图像。有时这些图像需要旋转 使用Imagicks rotateImage函数没有问题,但是站点上的其他用户可能已经缓存了图像。我可以更新上次修改的图像文件头吗 我的旋转脚本: $imagick = new Imagick(); $imagick->readImage("path-to-image"); $imagick->rotateImage(new ImagickPixel(), 90); $imagick->

我有一个网站,用户可以上传图像。有时这些图像需要旋转

使用Imagicks rotateImage函数没有问题,但是站点上的其他用户可能已经缓存了图像。我可以更新上次修改的图像文件头吗

我的旋转脚本:

    $imagick = new Imagick(); 
    $imagick->readImage("path-to-image"); 
    $imagick->rotateImage(new ImagickPixel(), 90); 
    $imagick->writeImage(path-to-image);
    print $imagick->getImage();

一旦旋转,请使用过期日期为过去的图像

header("Cache-Control: no-cache, must-revalidate"); 
header("Expires: Sat, 26 Jul 2007 05:00:00 GMT");