You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2021/03/15 14:33:55 UTC

[openmeetings] branch master updated: [OPENMEETINGS-2594] ping is improved

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new a76a67d  [OPENMEETINGS-2594] ping is improved
a76a67d is described below

commit a76a67ded7719c45855ff09039290787d8984703
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Mon Mar 15 21:33:39 2021 +0700

    [OPENMEETINGS-2594] ping is improved
---
 openmeetings-web/src/main/front/main/src/omutils.js                     | 2 +-
 .../java/org/apache/openmeetings/web/common/PingResourceReference.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/openmeetings-web/src/main/front/main/src/omutils.js b/openmeetings-web/src/main/front/main/src/omutils.js
index 3ce0679..99bec44 100644
--- a/openmeetings-web/src/main/front/main/src/omutils.js
+++ b/openmeetings-web/src/main/front/main/src/omutils.js
@@ -125,7 +125,7 @@ module.exports = {
 	, ping: function() {
 		setTimeout(() => {
 			_sendMessage({type: 'ping'});
-			fetch('./ping');
+			fetch('./ping', {cache: "no-store"});
 		}, 30000);
 	}
 	, notify: _notify
diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/PingResourceReference.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/PingResourceReference.java
index 4a59fc5..07c9621 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/PingResourceReference.java
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/PingResourceReference.java
@@ -36,6 +36,6 @@ public class PingResourceReference extends ResourceReference {
 
 	@Override
 	public IResource getResource() {
-		return new CharSequenceResource("text/plain", "ping");
+		return new CharSequenceResource("text/plain", "pong");
 	}
 }