mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +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) |     protected void doHead(HttpServletRequest request, HttpServletResponse response) | ||||||
|             throws ServletException, IOException { |             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 |         // Set last modified and content type headers | ||||||
|         response.addDateHeader("Last-Modified", resource.getLastModified()); |         response.addDateHeader("Last-Modified", resource.getLastModified()); | ||||||
|         response.setContentType(resource.getMimeType()); |         response.setContentType(resource.getMimeType()); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user