GUACAMOLE-275: Request browser to always revalidate cached dynamic contents.
This commit is contained in:
1 parent
e9e1703184
commit
f94b6c68aa
1 file changed
+4
@@ -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