javascript - Turn Off Caching for fabricjs image object - Stack Overflow

I am trying to load an image using fabricjs using the function:fabric.Image.fromURL()I want to turn of

I am trying to load an image using fabricjs using the function: fabric.Image.fromURL()

I want to turn off caching because when the image is updated, the fabricjs image object doesn't get updated because it gets cached.

I cannot use a random string as a dummy parameter in the url to stop caching because the url I am using contains a signature parameter and therefore if I try to add a dummy parameter I need to update the signature parameter of the url which is something I don't want to do.

I would appreciate any help. Thanks for your time!

I am trying to load an image using fabricjs using the function: fabric.Image.fromURL()

I want to turn off caching because when the image is updated, the fabricjs image object doesn't get updated because it gets cached.

I cannot use a random string as a dummy parameter in the url to stop caching because the url I am using contains a signature parameter and therefore if I try to add a dummy parameter I need to update the signature parameter of the url which is something I don't want to do.

I would appreciate any help. Thanks for your time!

Share Improve this question asked Aug 19, 2015 at 11:41 Costas PapanicolaouCostas Papanicolaou 1211 silver badge5 bronze badges 1
  • Did you ever find a solution? Running into the same thing right now. – Mario Tacke Commented May 10, 2017 at 17:01
Add a ment  | 

1 Answer 1

Reset to default 4

Since version 1.7.0 fabricjs is not caching Images. This is from documentation.

objectCaching :Boolean When true, object is cached on an additional canvas. default to false for images since 1.7.0

Please check fabricjs image documentation

I know it is too late, but maybe somebody can update their library to newer one.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745133212a4613073.html

相关推荐

  • javascript - Turn Off Caching for fabricjs image object - Stack Overflow

    I am trying to load an image using fabricjs using the function:fabric.Image.fromURL()I want to turn of

    5小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信