mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-275: Request browser to always revalidate cached dynamic contents.
This commit is contained in:
@@ -68,6 +68,10 @@ public class ResourceServlet extends HttpServlet {
|
||||
protected void doHead(HttpServletRequest request, HttpServletResponse response)
|
||||
throws ServletException, IOException {
|
||||
|
||||
// Request that the browser revalidate cached data
|
||||
response.addHeader("Cache-Control", "no-cache");
|
||||
response.addHeader("Pragma", "no-cache");
|
||||
|
||||
// Set last modified and content type headers
|
||||
response.addDateHeader("Last-Modified", resource.getLastModified());
|
||||
response.setContentType(resource.getMimeType());
|
||||
|
Reference in New Issue
Block a user