代码如下
Laya.loader.clearRes("http://10.144.1.20:8081/files/images/profile/by_dsfdsfsd.jpg");
var test: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/images/profile/by_dsfdsfsd.jpg");
Laya.loader.load("http://10.144.1.20:8081/files/images/profile/by_dsfdsfsd.jpg", Handler.create(this, function (): void {
var t: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/images/profile/by_dsfdsfsd.jpg");
var ape: Sprite = new Sprite();
ape.graphics.drawTexture(t, 0, 0);
Laya.stage.addChild(ape);
ape.pos(0, 0);
}));
业务:
图片服务器会修改上传新的图片,图片的文件名不变
流程:
我清理了一边缓存,确认了缓存里没有资源情况下重新向url获取请求
得到的还是原来那张图片
请问要怎样才能刷新url请求的图片文件呢