Fixed history and header update in IE

Due to Internet Explorer caching GET requests the Undo/Redo list and
column headers were not updated, leaving essential parts of the user
interface crippled even if Google Frame is installed. Adding
Cache-Control headers to the responses fixes this.
This commit is contained in:
Frank Wennerdahl 2013-01-24 09:39:12 +01:00
parent f1387bdb24
commit 64cf62e081
2 changed files with 2 additions and 0 deletions

View File

@ -303,6 +303,7 @@ public abstract class Command {
response.setCharacterEncoding("UTF-8");
response.setHeader("Content-Type", "application/json");
response.setHeader("Cache-Control", "no-cache");
Writer w = response.getWriter();
JSONWriter writer = new JSONWriter(w);

View File

@ -85,6 +85,7 @@ public class GetModelsCommand extends Command {
try {
response.setCharacterEncoding("UTF-8");
response.setHeader("Content-Type", "application/json");
response.setHeader("Cache-Control", "no-cache");
Properties options = new Properties();
JSONWriter writer = new JSONWriter(response.getWriter());