Merge pull request #665 from Arcadelia/IE_Cache-fixes

Fixed history and header update in IE by setting "Cache-Control", "no-cache" in HTTP headers
This commit is contained in:
Tom Morris 2013-01-25 16:17:54 -08:00
commit b24b291251
2 changed files with 2 additions and 0 deletions

View File

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

View File

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