diff --git a/pom.xml b/pom.xml
index 361b6e43..85b010a2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
org.dynmap
dynmap
- 0.30
+ 0.29.2
dynmap
UTF-8
diff --git a/src/main/java/org/dynmap/web/handlers/ClientConfigurationHandler.java b/src/main/java/org/dynmap/web/handlers/ClientConfigurationHandler.java
index 9a899f07..67d03282 100644
--- a/src/main/java/org/dynmap/web/handlers/ClientConfigurationHandler.java
+++ b/src/main/java/org/dynmap/web/handlers/ClientConfigurationHandler.java
@@ -14,6 +14,8 @@ import org.json.simple.JSONObject;
public class ClientConfigurationHandler implements HttpHandler {
private DynmapPlugin plugin;
private byte[] cachedConfiguration = null;
+ private int cached_config_hashcode = 0;
+
public ClientConfigurationHandler(DynmapPlugin plugin) {
this.plugin = plugin;
plugin.events.addListener("worldactivated", new Event.Listener() {
@@ -25,13 +27,14 @@ public class ClientConfigurationHandler implements HttpHandler {
}
@Override
public void handle(String path, HttpRequest request, HttpResponse response) throws Exception {
- if (cachedConfiguration == null) {
+ if ((cachedConfiguration == null) || (plugin.getConfigHashcode() != cached_config_hashcode)) {
JSONObject configurationObject = new JSONObject();
plugin.events.trigger("buildclientconfiguration", configurationObject);
String s = configurationObject.toJSONString();
cachedConfiguration = s.getBytes("UTF-8");
+ cached_config_hashcode = plugin.getConfigHashcode();
}
String dateStr = new Date().toString();
diff --git a/web/config.js b/web/config.js
index 84dd3140..c810ea62 100644
--- a/web/config.js
+++ b/web/config.js
@@ -1,7 +1,7 @@
var config = {
// For internal server or proxying webserver.
url : {
- configuration : 'up/configuration?_={timestamp}',
+ configuration : 'up/configuration',
update : 'up/world/{world}/{timestamp}',
sendmessage : 'up/sendmessage'
},