本文介绍了PHP Google云存储工具getImageServingUrl返回旧图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的PHP应用程序在谷歌应用程序引擎上运行,它使用谷歌云存储来存储图像。

我使用 CloudStorageTools :: getImageServingUrl 显示图像,并且网址已成功指向图像。我使用 = sXXX 格式重新调整图片大小。

 例如: http://lh3.ggpht.com/AddEfddJKeiesklEaldaooea9as9e7de=s144 

问题是我删除了以前的图片,并使用相同的图片名称替换为其他图片,则显示旧图片。尽管我清除了浏览器缓存,但它并未解决。但是当我从url中删除= sXXX部分时,它指向新图像,没有任何问题。我该如何克服这一点?



谢谢,问候!

解决方案

现在很熟悉GAE PHP,但我会帮助一下。



服务网址持续存在直到(请参阅

现在我已经搜索并且函数 CloudStorageTools :: deleteImageServingUrl() code>存在于PHP中,所以试着调用它然后创建一个新的。

I have PHP application running on google app engine which uses google cloud storage to store images.

I'm displaying images using 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

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 CloudStorageTools::deleteImageServingUrl() exists for PHP so try calling that and then create a new one.

这篇关于PHP Google云存储工具getImageServingUrl返回旧图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 09:43