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

别等时光非礼了梦想. 提交于 2019-12-03 07:14:42

SharePoint sends the header:

Content-Disposition: attachment; filename="xyz.js"
X-Download-Options:  noopen

and the IE Web Worker Implantation then does not run this web worker. (Tested in IE11) In the IE Network Monitor the request still on pending, even the Response text is visible.

I know so fare two workarounds:

  1. Place the web worker js in the layouts folder (needs a Farm Solution, with the downside of this)
  2. Set the Browser File Handling for the Web application to Permissive (maybe your security is not amused)

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!