Web worker won't start in IE unless the cache is cleared

前端 未结 2 1273
后悔当初
后悔当初 2021-02-09 06:22

I\'m having a really weird bug in my HTML5 script. I wrote a sharepoint app completely in OData which uses a few HTML 5 webworker to do the number crunching in the background. T

2条回答
  •  时光说笑
    2021-02-09 06:51

    using a time based querystring parameter prevents caching showing http status 200 on each refresh. tested on latest chrome, ie, ff;

    var opus = new Worker("worker.js?q=" + new Date().getTime().toString() );
    

    to be honest this a long shot as i do not have sharepoint right now

提交回复
热议问题