Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

javascript - 自动更新基于React的Web应用程序的最新版本的问题(Problem with auto update last version of react based web application)

I developed react based web application and release it.

(我开发了基于React的Web应用程序并将其发布。)

Now I tried to add some feature to app and update that , I noticed that the new version doesn't update on browser.

(现在,我尝试向应用程序添加一些功能并对其进行更新,我注意到新版本在浏览器上未更新。)

I was tried this on my xampp and The app was simply updated.

(我曾在我的xampp上尝试过此功能,而该应用程序只是进行了更新。)

On my server,

(在我的服务器上)

1) Like xampp, I'm serving application build (created by "npm run build") on apache

(1)像xampp一样,我在apache上提供应用程序构建(由“ npm run build”创建))

2) I have HTTPS on It.

(2)我有HTTPS。)

3) also "serviceWorker.unregister()" to disable PWA.

(3)还使用“ serviceWorker.unregister()”禁用PWA。)

But I'm still have update problem.

(但是我仍然有更新问题。)

I really appreciate your help.

(非常感谢您的帮助。)

Also sorry about my English.

(也对我的英语感到抱歉。)

  ask by Abbas Habibnejad translate from so

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

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...