Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
644 views
in Technique[技术] by (71.8m points)

word addins - Office 2016 loading HTML asset rather than JS asset

We have an office-js Word add-in which has HTML and JS assets. Prior to today, the add-in worked fine. Now for some users, the js asset is responding with content of the HTML asset. The js asset is served from a url like https://example.com/path/taskpane.html and the js asset is served from https://example.com/path/js-asset~vendor.js.

I used Windows F12 to inspect what the embedded IE received from the JS asset URL, and it matches what the HTML asset's URL returns.

Our webserver is behind an nginx instance.

Notably, this issue doesn't occur in standalone/non-Office-embedded IE or Edge browsers.

The issue is resolved when restarting the user's computer, but not after restarting MS Word.

How might I fix this without asking all users to restart their machines?

question from:https://stackoverflow.com/questions/65848083/office-2016-loading-html-asset-rather-than-js-asset

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...