diff --git a/dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/restful/NodeRestfulApi.java b/dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/restful/NodeRestfulApi.java index 1c61bf4d82..5ed20bbb48 100644 --- a/dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/restful/NodeRestfulApi.java +++ b/dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/restful/NodeRestfulApi.java @@ -149,7 +149,8 @@ private NodeInfoVO transfer(NodeInfo nodeInfo, HttpServletRequest req) throws IO public void getIcon(HttpServletResponse response, @PathVariable("nodeType") String nodeType) throws IOException { byte[] icon = workflowNodeService.getNodeIcon(nodeType); response.setContentType("image/svg+xml"); - response.addHeader("Cache-Control", "max-age=3600, no-transform"); + //图表缓存一天,24*60*60=86400秒 + response.addHeader("Cache-Control", "max-age=86400, no-transform"); response.getOutputStream().write(icon); }