mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Avoid caching for all responses.
This commit is contained in:
@@ -277,6 +277,7 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
|
|||||||
// buffer 1024 bytes before starting a normal stream if we use
|
// buffer 1024 bytes before starting a normal stream if we use
|
||||||
// anything but application/octet-stream.
|
// anything but application/octet-stream.
|
||||||
response.setContentType("application/octet-stream");
|
response.setContentType("application/octet-stream");
|
||||||
|
response.setHeader("Cache-Control", "no-cache");
|
||||||
|
|
||||||
Writer out = new BufferedWriter(new OutputStreamWriter(response.getOutputStream(), "UTF-8"));
|
Writer out = new BufferedWriter(new OutputStreamWriter(response.getOutputStream(), "UTF-8"));
|
||||||
|
|
||||||
@@ -368,6 +369,7 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
|
|||||||
// attempt to parse the result, even though the JavaScript client
|
// attempt to parse the result, even though the JavaScript client
|
||||||
// does not explicitly request such parsing.
|
// does not explicitly request such parsing.
|
||||||
response.setContentType("application/octet-stream");
|
response.setContentType("application/octet-stream");
|
||||||
|
response.setHeader("Cache-Control", "no-cache");
|
||||||
response.setContentLength(0);
|
response.setContentLength(0);
|
||||||
|
|
||||||
// Send data
|
// Send data
|
||||||
|
Reference in New Issue
Block a user