问题描述
我的PHP应用程序在谷歌应用程序引擎上运行,它使用谷歌云存储来存储图像。
我使用 CloudStorageTools :: getImageServingUrl
显示图像,并且网址已成功指向图像。我使用 = sXXX
格式重新调整图片大小。
例如: http://lh3.ggpht.com/AddEfddJKeiesklEaldaooea9as9e7de=s144
问题是我删除了以前的图片,并使用相同的图片名称替换为其他图片,则显示旧图片。尽管我清除了浏览器缓存,但它并未解决。但是当我从url中删除= sXXX部分时,它指向新图像,没有任何问题。我该如何克服这一点?
谢谢,问候!
现在很熟悉GAE PHP,但我会帮助一下。
服务网址持续存在直到(请参阅
现在我已经搜索并且函数 I have PHP application running on google app engine which uses google cloud storage to store images. I'm displaying images using The problem is once I delete the previous image and replace it with another image using the same image name and it displays the older image. Even though I clear browser cache it doesn't solve. But when I remove =sXXX part from the url, it points to the new image without any problem at all. How can I overcome this? Thanks & Regards! Now a lot familiar with GAE PHP but I ll help a bit. A serving url is persistent until (see answer here): Now I've searched and the function 这篇关于PHP Google云存储工具getImageServingUrl返回旧图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! CloudStorageTools :: deleteImageServingUrl() code>存在于PHP中,所以试着调用它然后创建一个新的。
CloudStorageTools::getImageServingUrl
and the url is successfully pointed to images. I re-size the image using =sXXX
format.e.g: http://lh3.ggpht.com/AddEfddJKeiesklEaldaooea9as9e7de=s144
CloudStorageTools::deleteImageServingUrl()
exists for PHP so try calling that and then create a new one.