Skip to content

Commit f04b791

Browse files
committed
fix: modify resource download
1 parent 3fde8ee commit f04b791

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

base/src/main/java/com/tinyengine/it/controller/ResourceController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,6 @@ public void getResource(@PathVariable String name, HttpServletResponse response)
331331
// 设置必要的HTTP头
332332
response.setContentType(detectedType);
333333
response.setContentLength(imageBytes.length);
334-
response.setHeader("Cache-Control", "public, max-age=3600"); // 添加缓存控制
335-
response.setHeader("Accept-Ranges", "bytes"); // 支持断点续传
336334

337335
// 设置Content-Disposition
338336
String contentDisposition = Utils.isDownload(name)

0 commit comments

Comments
 (0)