Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个单页主干应用程序,由使用 ruby on rails 的堆栈提供服务。我的问题是,如果生产中有代码更改,用户在刷新之前不会收到新代码。我想提供一种让用户知道何时需要刷新的方法。你们中的任何人都可以提供您过去尝试过的建议或方法吗?
为此,我建议使用webSocket或长轮询请求。